From: Bill Erickson Date: Fri, 6 Jan 2017 19:53:31 +0000 (-0500) Subject: JBAS-1665 Selfcheck return-to URL option X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=dabb7f971cb4cd46f81f27dcee4c034931658e68;p=working%2FEvergreen.git 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 --- 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; } }