diff --git a/plugins/CoreHome/templates/broadcast.js b/plugins/CoreHome/templates/broadcast.js index 0cd5c7548971d1bf75da0a0516b4154dae821275..e157e529123fb03dcace52d8ce06390248400c0f 100644 --- a/plugins/CoreHome/templates/broadcast.js +++ b/plugins/CoreHome/templates/broadcast.js @@ -47,6 +47,11 @@ var broadcast = { */ forceReload: false, + /** + * Suppress content update on hash changing + */ + updateHashOnly: false, + /** * Initializes broadcast object * @return {void} @@ -82,6 +87,12 @@ var broadcast = { // Unbind any previously attached resize handlers $(window).off('resize'); + + // do not update content if it should be suppressed + if (broadcast.updateHashOnly) { + broadcast.updateHashOnly = false; + return; + } // hash doesn't contain the first # character. if( hash ) { diff --git a/plugins/Dashboard/templates/dashboardObject.js b/plugins/Dashboard/templates/dashboardObject.js index 37004269a376bcb4c1dcd1b7501e6b736c915eea..9ab41598913a8ccfe50fbcf10e5a61a23b8eafe6 100644 --- a/plugins/Dashboard/templates/dashboardObject.js +++ b/plugins/Dashboard/templates/dashboardObject.js @@ -91,6 +91,8 @@ dashboardLayout = null; dashboardId = dashboardIdToLoad; piwikHelper.showAjaxLoading(); + broadcast.updateHashOnly = true; + broadcast.propagateAjax('?idDashboard='+dashboardIdToLoad); fetchLayout(generateLayout); buildMenu(); return this;