From: Bill Erickson Date: Wed, 8 Mar 2017 20:13:25 +0000 (-0500) Subject: JBAS-1665 SCKO return-to timeout before login X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=dacd61a7c8c55f94bccd8876689d9fc34a528795;p=working%2FEvergreen.git JBAS-1665 SCKO return-to timeout before login Allow SCKO to timeout and return to the return-to URL (if set) even if the patron login process never completes. Signed-off-by: Bill Erickson --- 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 fb5cc17b09..8b42dc2a7e 100644 --- a/Open-ILS/web/js/ui/kcls/circ/selfcheck/selfcheck.js +++ b/Open-ILS/web/js/ui/kcls/circ/selfcheck/selfcheck.js @@ -64,7 +64,7 @@ function selfckResetTimer() { console.log('Starting new login timer'); // do not show a warning dialog if the inactivity timeout - // occurs between entering a barcode and password. + // occurs during the login stage. selfckStartTimer(!Boolean(selfCheckManager.patron)); } @@ -1615,5 +1615,12 @@ openils.Util.addOnLoad( selfCheckManager.init(); openils.Util.registerEnterHandler(dojo.byId('patron-login-username'), function(){checkLogin();}); openils.Util.registerEnterHandler(dojo.byId('patron-login-password'), function(){selfCheckMgr.loginPatron(dojo.byId('patron-login-username').value,dojo.byId('patron-login-password').value);}); + + // If we have a return-to address, start the login timer + // before the patron logs in, so we can revert back to + // our return-to page if the patron never logs in. + if (selfCheckManager.cgi.param('return-to')) { + selfckResetTimer(); + } } );