Lines 137-151
Link Here
|
137 |
[% Asset.js("js/members-menu.js") | $raw %] |
137 |
[% Asset.js("js/members-menu.js") | $raw %] |
138 |
<script> |
138 |
<script> |
139 |
$(document).ready(function() { |
139 |
$(document).ready(function() { |
140 |
var columns_settings = [% TablesSettings.GetColumns('members', 'holdshistory', 'holdshistory-table', 'json') %]; |
140 |
var table_settings = [% TablesSettings.GetTableSettings('members', 'holdshistory', 'holdshistory-table', 'json') %]; |
141 |
[% UNLESS show_itemtype_column %] |
141 |
[% UNLESS show_itemtype_column %] |
142 |
//Remove item type column settings |
142 |
//Remove item type column settings |
143 |
columns_settings = columns_settings.filter(function(c){return c['columnname'] != 'itemtype';}); |
143 |
table_settings['columns'] = table_settings['columns'].filter(function(c){return c['columnname'] != 'itemtype';}); |
144 |
[% END %] |
144 |
[% END %] |
145 |
var table = KohaTable("table_holdshistory", { |
145 |
var table = KohaTable("table_holdshistory", { |
146 |
"sPaginationType": "full", |
146 |
"sPaginationType": "full", |
147 |
"aaSorting": [[4, 'desc']] |
147 |
"aaSorting": [[4, 'desc']] |
148 |
}, columns_settings); |
148 |
}, table_settings); |
149 |
}); |
149 |
}); |
150 |
</script> |
150 |
</script> |
151 |
[% END %] |
151 |
[% END %] |
152 |
- |
|
|