[Python-modules-commits] [django-session-security] 01/09: Redirect to the url specified in returnToURL if configured
Jean-Michel Vourgère
nirgal at moszumanska.debian.org
Sun Jan 17 04:55:42 UTC 2016
This is an automated email from the git hooks/post-receive script.
nirgal pushed a commit to tag 2.3.1
in repository django-session-security.
commit 674886a949a5aa2bcd5fc05138777e0de4be9286
Author: Andrei Coman <andrei.coman at 3pillarglobal.com>
Date: Fri Sep 19 14:43:59 2014 +0300
Redirect to the url specified in returnToURL if configured
---
session_security/static/session_security/script.js | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/session_security/static/session_security/script.js b/session_security/static/session_security/script.js
index 5d23093..40169d0 100644
--- a/session_security/static/session_security/script.js
+++ b/session_security/static/session_security/script.js
@@ -48,7 +48,12 @@ yourlabs.SessionSecurity.prototype = {
// seconds.
expire: function() {
this.expired = true;
- window.location.reload();
+ if (this.returnToUrl) {
+ window.location.href = this.returnToUrl;
+ }
+ else {
+ window.location.reload();
+ }
},
// Called when there has been no activity for more than warnAfter
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/django-session-security.git
More information about the Python-modules-commits
mailing list