|
Lines 613-629
Item types › Administration › Koha
Link Here
|
| 613 |
[% INCLUDE 'columns_settings.inc' %] |
613 |
[% INCLUDE 'columns_settings.inc' %] |
| 614 |
<script> |
614 |
<script> |
| 615 |
$(document).ready(function() { |
615 |
$(document).ready(function() { |
| 616 |
var columns_settings = [% TablesSettings.GetColumns( 'admin', 'itemtypes', 'table_item_type', 'json' ) | $raw %]; |
616 |
var table_settings = [% TablesSettings.GetTableSettings( 'admin', 'itemtypes', 'table_item_type', 'json' ) | $raw %]; |
| 617 |
[% IF ( Koha.Preference('noItemTypeImages') && Koha.Preference('OpacNoItemTypeImages') ) %] |
617 |
[% IF ( Koha.Preference('noItemTypeImages') && Koha.Preference('OpacNoItemTypeImages') ) %] |
| 618 |
columns_settings.shift(); // Remove item type image column from configuration |
618 |
table_settings['columns'].shift(); // Remove item type image column from configuration |
| 619 |
[% END %] |
619 |
[% END %] |
| 620 |
|
620 |
|
| 621 |
$(document).ready(function() { |
621 |
$(document).ready(function() { |
| 622 |
KohaTable("table_item_type", { |
622 |
KohaTable("table_item_type", { |
| 623 |
"aaSorting": [[ 1, "asc" ]], |
|
|
| 624 |
"iDisplayLength": 10, |
| 625 |
"sPaginationType": "full" |
623 |
"sPaginationType": "full" |
| 626 |
}, columns_settings); |
624 |
}, table_settings); |
| 627 |
}); |
625 |
}); |
| 628 |
|
626 |
|
| 629 |
$( "#itemtypeentry" ).validate({ |
627 |
$( "#itemtypeentry" ).validate({ |
| 630 |
- |
|
|