[open-ils-commits] r16543 - trunk/Open-ILS/web/js/ui/default/circ/selfcheck (senator)
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue Jun 1 12:10:39 EDT 2010
Author: senator
Date: 2010-06-01 12:10:36 -0400 (Tue, 01 Jun 2010)
New Revision: 16543
Modified:
trunk/Open-ILS/web/js/ui/default/circ/selfcheck/payment.js
Log:
In OPAC CC payment, fall back on alert()ing events if onPaymentSubmit undef
Modified: trunk/Open-ILS/web/js/ui/default/circ/selfcheck/payment.js
===================================================================
--- trunk/Open-ILS/web/js/ui/default/circ/selfcheck/payment.js 2010-06-01 15:59:25 UTC (rev 16542)
+++ trunk/Open-ILS/web/js/ui/default/circ/selfcheck/payment.js 2010-06-01 16:10:36 UTC (rev 16543)
@@ -107,6 +107,10 @@
if (typeof(progressDialog) != "undefined")
progressDialog.hide();
- if (typeof(onPaymentSubmit) == "function")
+ if (typeof(onPaymentSubmit) == "function") {
onPaymentSubmit(resp);
+ } else {
+ var evt = openils.Event.parse(resp);
+ if (evt) alert(evt);
+ }
}
More information about the open-ils-commits
mailing list