https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35273

--- Comment #6 from Jonathan Druart <[email protected]> ---
The problem is coming around this code:

 468         var _build_item = function(item, tr) {
 469             var chb = $('<input type="checkbox" name="items_to_receive"
value="'+item.item_id+'" />')
 470                 .prop('checked', item._checked)
 471                 .change(function() {
 472                     item._checked = $(this).prop('checked');
 473                 });


496         function PopupEditPage(biblionumber, itemnumber) {

 509                         success: function(item) {
 510                             var tr = $("#item_"+itemnumber);
 511                             item._checked =
$(tr).find('input[type="checkbox"]').prop('checked');
 512                             tr.html('');
 513                             _build_item(item, tr);

When the popup page is opened we lost the on change trigger (because we
recreate the tr).

This is ugly but the least intrusive I have found to not introduce
regressions...

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to