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>
This commit is contained in:
Lucas Gass 2024-01-03 22:57:32 +00:00 committed by Katrin Fischer
parent bb7fc5025b
commit cbc97f5c68
Signed by: kfischer
GPG key ID: 0EF6E2C03357A834

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