Lines 5-10
$(document).ready(function() {
Link Here
|
5 |
|
5 |
|
6 |
var onHoldDueDateSet = false; |
6 |
var onHoldDueDateSet = false; |
7 |
|
7 |
|
|
|
8 |
var show_confirm = true; |
9 |
|
8 |
var onHoldChecked = function() { |
10 |
var onHoldChecked = function() { |
9 |
var isChecked = false; |
11 |
var isChecked = false; |
10 |
$('input[data-on-reserve]').each(function() { |
12 |
$('input[data-on-reserve]').each(function() { |
Lines 150-164
$(document).ready(function() {
Link Here
|
150 |
|
152 |
|
151 |
var itemnumber = $(this).val(); |
153 |
var itemnumber = $(this).val(); |
152 |
|
154 |
|
153 |
var can_renew = true; |
155 |
if(show_confirm && parseFloat(fines) > parseFloat(amountlimit) ) { |
154 |
|
|
|
155 |
if( parseFloat(fines) > parseFloat(amountlimit) ) { |
156 |
var result = confirm(MSG_CONFRIM_RENEW); |
156 |
var result = confirm(MSG_CONFRIM_RENEW); |
157 |
if(result){ |
157 |
if(!result){ |
158 |
can_renew = true; |
158 |
return false; |
159 |
}else{ |
|
|
160 |
can_renew = false; |
161 |
} |
159 |
} |
|
|
160 |
// Prevent displaying confirm box again |
161 |
show_confirm = false; |
162 |
} |
162 |
} |
163 |
|
163 |
|
164 |
var params = { |
164 |
var params = { |
Lines 183-192
$(document).ready(function() {
Link Here
|
183 |
params.date_due = dueDate |
183 |
params.date_due = dueDate |
184 |
} |
184 |
} |
185 |
|
185 |
|
186 |
if(can_renew) { |
186 |
$(this).parent().parent().replaceWith("<img id='renew_" + itemnumber + "' src='" + interface + "/" + theme + "/img/spinner-small.gif' />"); |
187 |
$(this).parent().parent().replaceWith("<img id='renew_" + itemnumber + "' src='" + interface + "/" + theme + "/img/spinner-small.gif' />"); |
187 |
renew(params); |
188 |
renew(params); |
|
|
189 |
} |
190 |
}); |
188 |
}); |
191 |
|
189 |
|
192 |
// Refocus on barcode field if it exists |
190 |
// Refocus on barcode field if it exists |
193 |
- |
|
|