From dabb7f971cb4cd46f81f27dcee4c034931658e68 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Fri, 6 Jan 2017 14:53:31 -0500 Subject: [PATCH] JBAS-1665 Selfcheck return-to URL option New URL option return-to=http://example.org used for overriding the default patron timeout / logout destination. Signed-off-by: Bill Erickson --- Open-ILS/web/js/ui/kcls/circ/selfcheck/selfcheck.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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 608ae47abb..deefe6ac6c 100644 --- a/Open-ILS/web/js/ui/kcls/circ/selfcheck/selfcheck.js +++ b/Open-ILS/web/js/ui/kcls/circ/selfcheck/selfcheck.js @@ -1566,15 +1566,18 @@ SelfCheckManager.prototype.printFinesReceipt = function(callback) { * Logout the patron and return to the login page */ SelfCheckManager.prototype.logoutPatron = function(print) { + + var return_url = this.cgi.param('return-to') || location.href; + progressDialog.show(true); // prevent patron from clicking logout link twice if(print && this.checkouts.length) { this.printSessionReceipt( function() { - location.href = location.href; + location.href = return_url; } ); } else { - location.href = location.href; + location.href = return_url; } } -- 2.11.0