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:
parent
aa255653d1
commit
f243cf8197
|
|
@ -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: {
|
||||
|
|
|
|||
Loading…
Reference in New Issue