diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tmpl index 980d195..7872db9 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tmpl @@ -94,30 +94,19 @@ var allcheckboxes = $(".checkboxed"); $(this).hide(); $("#add_message_form").show(); }); + + + // uncheck_sibling + $('.itemsCheckbox').click(function(){ + $(this).closest('tr').find('.barcodesCheckbox').attr('checked', false); + }); + + $('.barcodesCheckbox').click(function(){ + $(this).closest('tr').find('.itemsCheckbox').attr('checked', false); + }); + }); -function uncheck_sibling(me){ -nodename=me.getAttribute("name"); -if (nodename =="barcodes[]"){ - var Node=me.parentNode.previousSibling; - while (Node.nodeName!="TD"){Node=Node.previousSibling} - var Nodes=Node.childNodes; - for (var i=0;i 0 - " checked="checked" style="display: none;" /> + " checked="checked" style="display: none;" /> - " checked="checked" /> + " checked="checked" /> - " /> + " /> @@ -790,8 +779,8 @@ No patron matched Checkin Failed - " onclick="uncheck_sibling(this);" /> - " checked="checked" style="display: none;" /> + " /> + " checked="checked" style="display: none;" />