Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvipsoft <vipsoft@59fd770c-687e-43c8-a1e3-f5a4ff64c105>2009-09-09 18:56:11 +0400
committervipsoft <vipsoft@59fd770c-687e-43c8-a1e3-f5a4ff64c105>2009-09-09 18:56:11 +0400
commit050dd80016601a3da2ac2c9bbfa33287fc11cb5d (patch)
treef499dce5a2b4502d0111cc0a3412552f8d929356 /plugins/CoreHome/templates/broadcast.js
parent1ca5e081c4afd3c08ec5bc02d494f882d01995b4 (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.js5
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();