better generic renewal failure checking and message
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 27 Jul 2006 03:16:16 +0000 (03:16 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 27 Jul 2006 03:16:16 +0000 (03:16 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@5116 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/opac/skin/default/js/myopac.js
Open-ILS/web/opac/skin/default/xml/myopac/myopac_checked.xml

index 59e94e3..8772ea9 100644 (file)
@@ -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();
index 76d13a1..24ad386 100644 (file)
 
        <span class='hide_me' id='myopac_renew_confirm'>Are you sure you wish to renew this item?</span>
 
+       <span class='hide_me' id='myopac_renew_fail'>
+               The system was unable to renew the selected item.  Please ask a librarian for help.
+       </span>
+
 </div>