From: berick Date: Thu, 17 Feb 2011 20:56:31 +0000 (-0500) Subject: show a confirmation dialog 'page' (pane) instead of the pop-up X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=afb78322fc2d1e6902d293b9172394255e049f33;p=evergreen%2Fequinox.git show a confirmation dialog 'page' (pane) instead of the pop-up --- diff --git a/Open-ILS/web/opac/skin/kcls/js/myopac.js b/Open-ILS/web/opac/skin/kcls/js/myopac.js index bf3b61b61e..0bd72f8eb9 100644 --- a/Open-ILS/web/opac/skin/kcls/js/myopac.js +++ b/Open-ILS/web/opac/skin/kcls/js/myopac.js @@ -1671,10 +1671,32 @@ function drawPayFinesPage(patron, total, xacts, onPaymentSubmit) { if(!payFinesDrawn) { dojo.connect(oilsSelfckCCSubmit, 'onClick', function() { - //alert(transCache[xacts[0][0]].transaction.xact_type()); + hideMe($('pay_fines_now')); + unHideMe($('pay_fines_confirm')); + + $('pay_fines_confirm_amount').innerHTML = + dojo.query("span", "oils-selfck-cc-payment-summary")[0].innerHTML; + + dojo.connect(payConfirmSubmit, 'onClick', + function() { + if (typeof(progressDialog) != "undefined") progressDialog.show(true); + unHideMe($('pay_fines_now')); + hideMe($('pay_fines_confirm')); + sendCCPayment(patron, xacts, onPaymentSubmit); + } + ); + + dojo.connect(payConfirmCancel, 'onClick', + function() { + unHideMe($('pay_fines_now')); + hideMe($('pay_fines_confirm')); + } + ); + + /* if(!confirm("Are you sure?")) return; - if (typeof(progressDialog) != "undefined") progressDialog.show(true); sendCCPayment(patron, xacts, onPaymentSubmit); + */ } ); payFinesDrawn = true; diff --git a/Open-ILS/web/opac/skin/kcls/xml/myopac/myopac_summary.xml b/Open-ILS/web/opac/skin/kcls/xml/myopac/myopac_summary.xml index a3f45f0a3e..7d18ca34e3 100644 --- a/Open-ILS/web/opac/skin/kcls/xml/myopac/myopac_summary.xml +++ b/Open-ILS/web/opac/skin/kcls/xml/myopac/myopac_summary.xml @@ -169,6 +169,11 @@ +
+ Amount to pay: $. Are you sure?

+ + +