Lines 9-19
Link Here
|
9 |
$(document).ready(function() { |
9 |
$(document).ready(function() { |
10 |
$('#authdescriptions').tabs(); |
10 |
$('#authdescriptions').tabs(); |
11 |
[% IF ( displayhierarchy ) %] |
11 |
[% IF ( displayhierarchy ) %] |
|
|
12 |
var current_nodes = []; |
13 |
$('.currentauth').each(function() { |
14 |
current_nodes.push('#' + $(this).parent().parents('li:first').attr('id')); |
15 |
}); |
12 |
$('#hierarchies').jstree({ |
16 |
$('#hierarchies').jstree({ |
13 |
"plugins": [ "themes", "html_data"], |
17 |
"plugins": [ "themes", "html_data"], |
14 |
"themes": { "theme": "classic", |
18 |
"themes": { "theme": "classic", |
15 |
"icons": false }, |
19 |
"icons": false }, |
16 |
"core": { "initially_open": [ "#hier[% authid %]" ] } |
20 |
"core": { "initially_open": current_nodes } |
17 |
}); |
21 |
}); |
18 |
[% END %] |
22 |
[% END %] |
19 |
}); |
23 |
}); |
20 |
- |
|
|