|
Lines 590-606
Item types › Administration › Koha
Link Here
|
| 590 |
<script> |
590 |
<script> |
| 591 |
$(document).ready(function() { |
591 |
$(document).ready(function() { |
| 592 |
$('#icons').tabs(); |
592 |
$('#icons').tabs(); |
| 593 |
var columns_settings = [% TablesSettings.GetColumns( 'admin', 'itemtypes', 'table_item_type', 'json' ) | $raw %]; |
593 |
var table_settings = [% TablesSettings.GetTableSettings( 'admin', 'itemtypes', 'table_item_type', 'json' ) | $raw %]; |
| 594 |
[% IF ( Koha.Preference('noItemTypeImages') && Koha.Preference('OpacNoItemTypeImages') ) %] |
594 |
[% IF ( Koha.Preference('noItemTypeImages') && Koha.Preference('OpacNoItemTypeImages') ) %] |
| 595 |
columns_settings.shift(); // Remove item type image column from configuration |
595 |
table_settings['columns'].shift(); // Remove item type image column from configuration |
| 596 |
[% END %] |
596 |
[% END %] |
| 597 |
|
597 |
|
| 598 |
$(document).ready(function() { |
598 |
$(document).ready(function() { |
| 599 |
KohaTable("table_item_type", { |
599 |
KohaTable("table_item_type", { |
| 600 |
"aaSorting": [[ 1, "asc" ]], |
|
|
| 601 |
"iDisplayLength": 10, |
| 602 |
"sPaginationType": "full" |
600 |
"sPaginationType": "full" |
| 603 |
}, columns_settings); |
601 |
}, table_settings); |
| 604 |
}); |
602 |
}); |
| 605 |
|
603 |
|
| 606 |
$( "#itemtypeentry" ).validate({ |
604 |
$( "#itemtypeentry" ).validate({ |
| 607 |
- |
|
|