Bug 41564: Tidy kohaTable - admin/itemtypes.tt

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Jonathan Druart 2026-01-08 11:02:34 +01:00 committed by Lucas Gass
parent aa255653d1
commit f243cf8197
No known key found for this signature in database
GPG Key ID: 60B447398B0D36CA
1 changed files with 6 additions and 6 deletions

View File

@ -555,12 +555,13 @@
[% INCLUDE 'datatables.inc' %]
[% INCLUDE 'select2.inc' %]
<script>
$(document).ready(function() {
var table_settings = [% TablesSettings.GetTableSettings( 'admin', 'itemtypes', 'table_item_type', 'json' ) | $raw %];
[% IF ( Koha.Preference('noItemTypeImages') && Koha.Preference('OpacNoItemTypeImages') ) %]
table_settings['columns'].shift(); // Remove item type image column from configuration
[% END %]
var table_settings = [% TablesSettings.GetTableSettings( 'admin', 'itemtypes', 'table_item_type', 'json' ) | $raw %];
[% IF ( Koha.Preference('noItemTypeImages') && Koha.Preference('OpacNoItemTypeImages') ) %]
table_settings['columns'].shift(); // Remove item type image column from configuration
[% END %]
</script>
<script>
$(document).ready(function() {
$("#table_item_type").kohaTable(
{
@ -568,7 +569,6 @@
},
table_settings
);
});
$( "#itemtypeentry" ).validate({
rules: {