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

(-)a/koha-tmpl/intranet-tmpl/prog/js/checkouts.js (-12 / +9 lines)
Lines 7-12 $(document).ready(function() { Link Here
7
7
8
    var onHoldDueDateSet = false;
8
    var onHoldDueDateSet = false;
9
9
10
    var show_confirm = true;
11
10
    var onHoldChecked = function() {
12
    var onHoldChecked = function() {
11
        var isChecked = false;
13
        var isChecked = false;
12
        $('input[data-on-reserve]').each(function() {
14
        $('input[data-on-reserve]').each(function() {
Lines 137-151 $(document).ready(function() { Link Here
137
139
138
            var itemnumber = $(this).val();
140
            var itemnumber = $(this).val();
139
141
140
            var can_renew = true;
142
            if(show_confirm  && parseFloat(fines) > parseFloat(amountlimit) ) {
141
142
            if( parseFloat(fines) > parseFloat(amountlimit) ) {
143
                var result = confirm(MSG_CONFRIM_RENEW);
143
                var result = confirm(MSG_CONFRIM_RENEW);
144
                if(result){
144
                if(!result){
145
                    can_renew = true;
145
                    return false;
146
                }else{
147
                    can_renew = false;
148
                }
146
                }
147
                // Prevent displaying confirm box again
148
                show_confirm  = false;
149
            }
149
            }
150
150
151
            var params = {
151
            var params = {
Lines 164-173 $(document).ready(function() { Link Here
164
                params.date_due = dueDate
164
                params.date_due = dueDate
165
            }
165
            }
166
166
167
            if(can_renew) {
167
            $(this).parent().parent().replaceWith("<img id='renew_" + itemnumber + "' src='" + interface + "/" + theme + "/img/spinner-small.gif' />");
168
                $(this).parent().parent().replaceWith("<img id='renew_" + itemnumber + "' src='" + interface + "/" + theme + "/img/spinner-small.gif' />");
168
            renew(params);
169
                renew(params);
170
            }
171
        });
169
        });
172
170
173
        // Refocus on barcode field if it exists
171
        // Refocus on barcode field if it exists
174
- 

Return to bug 23415