Skip to content
Extraits de code Groupes Projets
Valider 8770a1d3 rédigé par sgiehl's avatar sgiehl
Parcourir les fichiers

refs #3011 fixed problem with loading dashboards

git-svn-id: http://dev.piwik.org/svn/trunk@6423 59fd770c-687e-43c8-a1e3-f5a4ff64c105
parent 3cdd6e5a
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -86,12 +86,12 @@ ...@@ -86,12 +86,12 @@
*/ */
loadDashboard: function(dashboardIdToLoad) { loadDashboard: function(dashboardIdToLoad) {
fetchLayout(generateLayout);
$(dashboardElement).empty(); $(dashboardElement).empty();
dashboardName = ''; dashboardName = '';
dashboardLayout = null; dashboardLayout = null;
dashboardId = dashboardIdToLoad; dashboardId = dashboardIdToLoad;
piwikHelper.showAjaxLoading(); piwikHelper.showAjaxLoading();
fetchLayout(generateLayout);
buildMenu(); buildMenu();
return this; return this;
}, },
...@@ -433,6 +433,7 @@ ...@@ -433,6 +433,7 @@
if (typeof piwikMenu != 'undefined') { if (typeof piwikMenu != 'undefined') {
piwikMenu.activateMenu('Dashboard', 'embeddedIndex'); piwikMenu.activateMenu('Dashboard', 'embeddedIndex');
} }
console.log($('a', this).attr('dashboardId'));
$('.dashboardMenuItem').removeClass('sfHover'); $('.dashboardMenuItem').removeClass('sfHover');
if ($(dashboardElement).length) { if ($(dashboardElement).length) {
$(dashboardElement).dashboard('loadDashboard', $('a', this).attr('dashboardId')); $(dashboardElement).dashboard('loadDashboard', $('a', this).attr('dashboardId'));
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter