logout with prompting on Escape, and print receipt
authorJason Etheridge <jason@esilibrary.com>
Fri, 22 Apr 2011 14:22:26 +0000 (10:22 -0400)
committerJason Etheridge <jason@esilibrary.com>
Fri, 22 Apr 2011 14:22:26 +0000 (10:22 -0400)
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