From 20b36156d8525e13e85daeead97a9ca839a7d9cf Mon Sep 17 00:00:00 2001 From: Jason Etheridge Date: Fri, 22 Apr 2011 10:22:26 -0400 Subject: [PATCH] logout with prompting on Escape, and print receipt --- Open-ILS/web/js/ui/kcls/circ/selfcheck/selfcheck.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Open-ILS/web/js/ui/kcls/circ/selfcheck/selfcheck.js b/Open-ILS/web/js/ui/kcls/circ/selfcheck/selfcheck.js index de4b58ee65..2a18126959 100644 --- a/Open-ILS/web/js/ui/kcls/circ/selfcheck/selfcheck.js +++ b/Open-ILS/web/js/ui/kcls/circ/selfcheck/selfcheck.js @@ -428,7 +428,8 @@ SelfCheckManager.prototype.updateScanBox = function(args) { selfckScanBox, 'onKeyDown', function(e) { - if(e.keyCode == dojo.keys.ESCAPE) if (window.confirm('Logout now without printing a receipt?')) selfCheckMgr.logoutPatron(); // TODO I18N + if(e.keyCode == dojo.keys.ESCAPE) + selfCheckMgr.logoutPatron(true); if(e.keyCode != dojo.keys.ENTER) return; args.handler(selfckScanBox.attr('value')); -- 2.11.0