From: Jason Etheridge Date: Fri, 22 Apr 2011 14:22:26 +0000 (-0400) Subject: logout with prompting on Escape, and print receipt X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=20b36156d8525e13e85daeead97a9ca839a7d9cf;p=evergreen%2Fequinox.git logout with prompting on Escape, and print receipt --- 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'));