JBAS-1665 SCKO fix return-to from timeout
authorBill Erickson <berickxx@gmail.com>
Mon, 27 Feb 2017 17:23:02 +0000 (12:23 -0500)
committerBill Erickson <berickxx@gmail.com>
Thu, 21 Mar 2019 19:46:23 +0000 (15:46 -0400)
Fix the return-to URL handling when accessed from the various
auto-timeout operations.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/web/js/ui/kcls/circ/selfcheck/selfcheck.js

index deefe6a..fb5cc17 100644 (file)
@@ -47,7 +47,7 @@ function selfckStartTimer(noWarning) {
     timerId = setTimeout(
         function() {
             if (noWarning) {
-                SelfCheckManager.prototype.logoutPatron();
+                selfCheckMgr.logoutPatron();
             } else {
                 selfckLogoutWarning();
             }
@@ -78,7 +78,7 @@ function selfckLogoutWarning() {
             function() {
                 clearTimeout(selfckWarningTimer);
                 oilsSelfckLogoutDialog.hide();
-                SelfCheckManager.prototype.logoutPatron();
+                selfCheckMgr.logoutPatron();
             }
         );
 
@@ -102,7 +102,7 @@ function selfckLogoutWarning() {
         function() {
             // no action was taken, force a logout.
             oilsSelfckLogoutDialog.hide();
-            SelfCheckManager.prototype.logoutPatron();
+            selfCheckMgr.logoutPatron();
         },
         patronTimeoutWarning
     );