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 <david@davidnind.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit cbc97f5c68)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
Lucas Gass 2024-01-03 22:57:32 +00:00 committed by Fridolin Somers
parent a51094a715
commit 5ab508d792

View file

@ -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) {