From: erickson Date: Thu, 27 Jul 2006 03:16:16 +0000 (+0000) Subject: better generic renewal failure checking and message X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=955fbb95311e51980cc5213317631dc774294782;p=Evergreen.git better generic renewal failure checking and message git-svn-id: svn://svn.open-ils.org/ILS/trunk@5116 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/web/opac/skin/default/js/myopac.js b/Open-ILS/web/opac/skin/default/js/myopac.js index 59e94e35dc..8772ea9560 100644 --- a/Open-ILS/web/opac/skin/default/js/myopac.js +++ b/Open-ILS/web/opac/skin/default/js/myopac.js @@ -238,11 +238,13 @@ function myOPACRenewCirc(circid) { req.send(true); var res = req.result(); - if(checkILSEvent(res)) { - alertILSEvent(res); + if(checkILSEvent(res) || checkILSEvent(res[0])) { + alertId('myopac_renew_fail'); return; } + + alert($('myopac_renew_success').innerHTML); checkedDrawn = false; myOPACShowChecked(); diff --git a/Open-ILS/web/opac/skin/default/xml/myopac/myopac_checked.xml b/Open-ILS/web/opac/skin/default/xml/myopac/myopac_checked.xml index 76d13a1161..24ad3866f3 100644 --- a/Open-ILS/web/opac/skin/default/xml/myopac/myopac_checked.xml +++ b/Open-ILS/web/opac/skin/default/xml/myopac/myopac_checked.xml @@ -69,6 +69,10 @@ Are you sure you wish to renew this item? + + The system was unable to renew the selected item. Please ask a librarian for help. + +