[% INCLUDE 'doc-head-open.inc' %]
<title>Koha › Administration › Library groups</title>
[% INCLUDE 'doc-head-close.inc' %]
-<script type="text/javascript" src="[% interface %]/lib/jquery-treegrid/js/jquery.treegrid.min.js"></script>
-<script type="text/javascript" src="[% interface %]/lib/jquery-treegrid/js/jquery.treegrid.bootstrap2.js"></script>
-<link rel="stylesheet" href="[% interface %]/lib/jquery-treegrid/css/jquery.treegrid.css">
+<link href="[% interface %]/lib/jquery/plugins/treetable/stylesheets/jquery.treetable.css" rel="stylesheet" type="text/css" />
+<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/treetable/jquery.treetable.js"></script>
<script type="text/javascript">
//<![CDATA[
$(document).ready(function() {
- $('#library-groups').treegrid(
+ $(".library-groups").treetable(
{
- 'saveState': true
+ expandable: true,
+ initialState: "expanded",
+ clickableNodeNames: true,
}
);
});
</div>
[% FOREACH root_group IN root_groups %]
- <table id="library-groups" class="tree">
+ <table class="library-groups" class="tree">
<tr>
<th> </th>
<th>Description</th>
[% INCLUDE 'intranet-bottom.inc' %]
[% BLOCK tree %]
- <tr class="treegrid-[% group.id %] treegrid-parent-[% group.parent_id %]">
+ <tr data-tt-id="[% group.id %]" data-tt-parent-id="[% group.parent_id %]">
<td>
[% IF group.branchcode %]
<i class="fa fa-home"></i> [% group.branchcode %]