|
Lines 555-566
Link Here
|
| 555 |
[% INCLUDE 'datatables.inc' %] |
555 |
[% INCLUDE 'datatables.inc' %] |
| 556 |
[% INCLUDE 'select2.inc' %] |
556 |
[% INCLUDE 'select2.inc' %] |
| 557 |
<script> |
557 |
<script> |
| 558 |
$(document).ready(function() { |
558 |
var table_settings = [% TablesSettings.GetTableSettings( 'admin', 'itemtypes', 'table_item_type', 'json' ) | $raw %]; |
| 559 |
var table_settings = [% TablesSettings.GetTableSettings( 'admin', 'itemtypes', 'table_item_type', 'json' ) | $raw %]; |
559 |
[% IF ( Koha.Preference('noItemTypeImages') && Koha.Preference('OpacNoItemTypeImages') ) %] |
| 560 |
[% IF ( Koha.Preference('noItemTypeImages') && Koha.Preference('OpacNoItemTypeImages') ) %] |
560 |
table_settings['columns'].shift(); // Remove item type image column from configuration |
| 561 |
table_settings['columns'].shift(); // Remove item type image column from configuration |
561 |
[% END %] |
| 562 |
[% END %] |
562 |
</script> |
| 563 |
|
563 |
|
|
|
564 |
<script> |
| 564 |
$(document).ready(function() { |
565 |
$(document).ready(function() { |
| 565 |
$("#table_item_type").kohaTable( |
566 |
$("#table_item_type").kohaTable( |
| 566 |
{ |
567 |
{ |
|
Lines 568-574
Link Here
|
| 568 |
}, |
569 |
}, |
| 569 |
table_settings |
570 |
table_settings |
| 570 |
); |
571 |
); |
| 571 |
}); |
|
|
| 572 |
|
572 |
|
| 573 |
$( "#itemtypeentry" ).validate({ |
573 |
$( "#itemtypeentry" ).validate({ |
| 574 |
rules: { |
574 |
rules: { |
| 575 |
- |
|
|