escape key handler (for logout) on the item scanbox. Since the scanbox aggresively...
authorJason Etheridge <jason@esilibrary.com>
Fri, 18 Feb 2011 13:55:12 +0000 (08:55 -0500)
committerJason Etheridge <jason@esilibrary.com>
Fri, 18 Feb 2011 13:55:12 +0000 (08:55 -0500)
Open-ILS/web/js/ui/kcls/circ/selfcheck/selfcheck.js

index fe492e5..de4b58e 100644 (file)
@@ -428,6 +428,7 @@ 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.ENTER) \r
                     return;\r
                 args.handler(selfckScanBox.attr('value'));\r