diff options
author | vipsoft <vipsoft@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2009-09-09 18:56:11 +0400 |
---|---|---|
committer | vipsoft <vipsoft@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2009-09-09 18:56:11 +0400 |
commit | 050dd80016601a3da2ac2c9bbfa33287fc11cb5d (patch) | |
tree | f499dce5a2b4502d0111cc0a3412552f8d929356 /plugins/CoreHome/templates/broadcast.js | |
parent | 1ca5e081c4afd3c08ec5bc02d494f882d01995b4 (diff) |
fixes #975 (refs #966) - redirect if ajax loaded section contains what appears to be the Login form
Diffstat (limited to 'plugins/CoreHome/templates/broadcast.js')
-rw-r--r-- | plugins/CoreHome/templates/broadcast.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/CoreHome/templates/broadcast.js b/plugins/CoreHome/templates/broadcast.js index 9d69ac7e67..931f13e2ce 100644 --- a/plugins/CoreHome/templates/broadcast.js +++ b/plugins/CoreHome/templates/broadcast.js @@ -164,6 +164,11 @@ broadcast.loadAjaxContent = function(urlAjax) function sectionLoaded(content) { + if(content.indexOf('<body class="login">') >= 0) { + window.location.reload(); + return; + } + if(urlAjax == broadcast.lastUrlRequested) { $('#content').html( content ).show(); $('#loadingPiwik').hide(); |