View | Details | Raw Unified | Return to bug 10884
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/js/pages/circulation.js (-13 / +5 lines)
Lines 80-93 $(document).ready(function() { Link Here
80
    // Clicking the table cell checks the checkbox inside it
80
    // Clicking the table cell checks the checkbox inside it
81
    $("td").on("click",function(e){
81
    $("td").on("click",function(e){
82
        if(e.target.tagName.toLowerCase() == 'td'){
82
        if(e.target.tagName.toLowerCase() == 'td'){
83
           $(this).find("input:checkbox:visible").each( function() {
83
          $(this).find("input:checkbox:visible").each( function() {
84
                if($(this).attr("checked")){
84
            $(this).click();
85
                    $(this).removeAttr("checked");
85
          });
86
                } else {
87
                    $(this).attr("checked","checked");
88
                    radioCheckBox($(this));
89
                }
90
           });
91
        }
86
        }
92
    });
87
    });
93
});
88
});
Lines 133-141 function validate1(date) { Link Here
133
128
134
// prevent adjacent checkboxes from being checked simultaneously
129
// prevent adjacent checkboxes from being checked simultaneously
135
function radioCheckBox(box){
130
function radioCheckBox(box){
136
    box.parents("td").siblings().find("input:checkbox:visible").each(function(){
131
    box.parents("td").siblings().find("input:checkbox.radio").each(function(){
137
        if($(this).attr("checked")){
132
        $(this).removeAttr("checked");
138
            $(this).removeAttr("checked");
139
        }
140
    });
133
    });
141
 }
134
 }
142
- 

Return to bug 10884