From 5ab508d792c84d884eb349df44c54eeea544a7de Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Wed, 3 Jan 2024 22:57:32 +0000 Subject: [PATCH] Bug 35695: Remove useless JS from cataloging_additem.js To test: 1. APPLY PATCH 2. Turn on EnableItemGroups 3. Go to a record with item groups, or create some. 4. Add an item, making sure items can be added to a group. ( Bug 33639 must be applied ) If I am wrong and this code should stay, tell me. I'll fix the jQuery instead of removing it. :) Signed-off-by: David Nind Signed-off-by: Martin Renvoize Signed-off-by: Katrin Fischer (cherry picked from commit cbc97f5c685e4e97f2d5f5c834f489869d5e2e4c) Signed-off-by: Fridolin Somers --- koha-tmpl/intranet-tmpl/prog/js/cataloging_additem.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/js/cataloging_additem.js b/koha-tmpl/intranet-tmpl/prog/js/cataloging_additem.js index 250a0599e0..2957253d0c 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/cataloging_additem.js +++ b/koha-tmpl/intranet-tmpl/prog/js/cataloging_additem.js @@ -134,13 +134,6 @@ $(document).ready(function(){ }); } - $('#item-group-add-or-create-form-select').on('change', function() { - if ( ! $('input.items-enumchron').val() ) { - let item_group_selector = '#item-group-' + $(this).val(); - let enumchron = $(item_group_selector).val(); - $('input.items-enumchron').val( enumchron ); - } - }); }); function CheckTemplateForm(f) { -- 2.20.1