logout with prompting on Escape, and print receipt
[evergreen-equinox.git] / Open-ILS / web / js / ui / kcls / circ / selfcheck / selfcheck.js
index de4b58e..2a18126 100644 (file)
@@ -428,7 +428,8 @@ SelfCheckManager.prototype.updateScanBox = function(args) {
             selfckScanBox, \r
             'onKeyDown', \r
             function(e) {\r
-                if(e.keyCode == dojo.keys.ESCAPE) if (window.confirm('Logout now without printing a receipt?')) selfCheckMgr.logoutPatron(); // TODO I18N\r
+                if(e.keyCode == dojo.keys.ESCAPE)\r
+                    selfCheckMgr.logoutPatron(true);\r
                 if(e.keyCode != dojo.keys.ENTER) \r
                     return;\r
                 args.handler(selfckScanBox.attr('value'));\r