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 146-160
$(document).ready(function() {
Link Here
|
146 |
|
148 |
|
147 |
var itemnumber = $(this).val(); |
149 |
var itemnumber = $(this).val(); |
148 |
|
150 |
|
149 |
var can_renew = true; |
151 |
if(show_confirm && parseFloat(fines) > parseFloat(amountlimit) ) { |
150 |
|
|
|
151 |
if( parseFloat(fines) > parseFloat(amountlimit) ) { |
152 |
var result = confirm(MSG_CONFRIM_RENEW); |
152 |
var result = confirm(MSG_CONFRIM_RENEW); |
153 |
if(result){ |
153 |
if(!result){ |
154 |
can_renew = true; |
154 |
return false; |
155 |
}else{ |
|
|
156 |
can_renew = false; |
157 |
} |
155 |
} |
|
|
156 |
// Prevent displaying confirm box again |
157 |
show_confirm = false; |
158 |
} |
158 |
} |
159 |
|
159 |
|
160 |
var params = { |
160 |
var params = { |
Lines 179-188
$(document).ready(function() {
Link Here
|
179 |
params.date_due = dueDate |
179 |
params.date_due = dueDate |
180 |
} |
180 |
} |
181 |
|
181 |
|
182 |
if(can_renew) { |
182 |
$(this).parent().parent().replaceWith("<img id='renew_" + itemnumber + "' src='" + interface + "/" + theme + "/img/spinner-small.gif' />"); |
183 |
$(this).parent().parent().replaceWith("<img id='renew_" + itemnumber + "' src='" + interface + "/" + theme + "/img/spinner-small.gif' />"); |
183 |
renew(params); |
184 |
renew(params); |
|
|
185 |
} |
186 |
}); |
184 |
}); |
187 |
|
185 |
|
188 |
// Refocus on barcode field if it exists |
186 |
// Refocus on barcode field if it exists |
189 |
- |
|
|