|
Lines 328-335
$(document).ready(function() {
Link Here
|
| 328 |
}).error(function (jqXHR, textStatus, errorThrown) { |
328 |
}).error(function (jqXHR, textStatus, errorThrown) { |
| 329 |
if (jqXHR.status === 404) { |
329 |
if (jqXHR.status === 404) { |
| 330 |
alert(__("Unable to resume, hold not found")); |
330 |
alert(__("Unable to resume, hold not found")); |
| 331 |
holdsTable.api().ajax.reload(); |
|
|
| 332 |
} |
331 |
} |
|
|
332 |
else { |
| 333 |
alert(_("Your request could not be processed. Check the logs")); |
| 334 |
} |
| 335 |
holdsTable.api().ajax.reload(); |
| 333 |
}); |
336 |
}); |
| 334 |
}); |
337 |
}); |
| 335 |
|
338 |
|
|
Lines 413-421
$(document).ready(function() {
Link Here
|
| 413 |
holdsTable.api().ajax.reload(); |
416 |
holdsTable.api().ajax.reload(); |
| 414 |
}).error(function (jqXHR, textStatus, errorThrown) { |
417 |
}).error(function (jqXHR, textStatus, errorThrown) { |
| 415 |
if (jqXHR.status === 404) { |
418 |
if (jqXHR.status === 404) { |
| 416 |
alert(__("Unable to resume, hold not found")); |
419 |
alert(__("Unable to suspend, hold not found")); |
| 417 |
holdsTable.api().ajax.reload(); |
|
|
| 418 |
} |
420 |
} |
|
|
421 |
else { |
| 422 |
alert(_("Your request could not be processed. Check the logs")); |
| 423 |
} |
| 424 |
holdsTable.api().ajax.reload(); |
| 419 |
}).done(function() { |
425 |
}).done(function() { |
| 420 |
$("#suspend-modal-until").val(""); // clean the input |
426 |
$("#suspend-modal-until").val(""); // clean the input |
| 421 |
$('#suspend-modal').modal('hide'); |
427 |
$('#suspend-modal').modal('hide'); |
| 422 |
- |
|
|