|
|
|
|
147
|
</%def>
|
147
|
</%def>
|
148
|
|
148
|
|
149
|
<%def name="TREEVIEW(dom_id, selected_id='', uniq_workspace='0')">
|
149
|
<%def name="TREEVIEW(dom_id, selected_id='', uniq_workspace='0')">
|
150
|
- <% get_root_url = tg.url("/workspaces/treeview_root", dict(current_id=selected_id)) %>
|
|
|
|
|
150
|
+ ## <% get_root_url = tg.url("/workspaces/treeview_root", dict(current_id=selected_id)) %>
|
151
|
<div id='sidebarleft_menu'></div>
|
151
|
<div id='sidebarleft_menu'></div>
|
152
|
<script src="${tg.url('/assets/js/sidebarleft.js')}"></script>
|
152
|
<script src="${tg.url('/assets/js/sidebarleft.js')}"></script>
|
153
|
<script>
|
153
|
<script>
|
|
|
154
|
+ // (function () { })() is equivalent to window.onload (http://stackoverflow.com/questions/9899372/pure-javascript-equivalent-to-jquerys-ready-how-to-call-a-function-when-the)
|
154
|
(function () {
|
155
|
(function () {
|
155
|
sidebarLeft(document.getElementById('sidebarleft_menu'), '/', '?current_id=${selected_id}')
|
156
|
sidebarLeft(document.getElementById('sidebarleft_menu'), '/', '?current_id=${selected_id}')
|
156
|
})()
|
157
|
})()
|