diff --git a/plugins/Dashboard/templates/Dashboard.js b/plugins/Dashboard/templates/Dashboard.js index 60db750ab39a05fafc4b8f0e8a9b16e1eab5a8e0..5643f6c6f704ada1ad98817d9024b70c49b7c84f 100644 --- a/plugins/Dashboard/templates/Dashboard.js +++ b/plugins/Dashboard/templates/Dashboard.js @@ -164,8 +164,8 @@ success: function() { methods.loadDashboard.apply(this, [dashboardId])}, data: { "idDashboard": dashboardId, "idSite": piwik.idSite } }; - $.ajax(ajaxRequest); piwikHelper.showAjaxLoading(); + $.ajax(ajaxRequest); }, /** @@ -535,6 +535,7 @@ idDashboard: dashboardId } }; + piwikHelper.showAjaxLoading(); $.ajax(ajaxRequest); } diff --git a/plugins/Dashboard/templates/index.tpl b/plugins/Dashboard/templates/index.tpl index 8e065348b77598175112fdff097c6f749e368df7..def6755cd3ca6de0f6197f3d64e66330dc42fb1d 100644 --- a/plugins/Dashboard/templates/index.tpl +++ b/plugins/Dashboard/templates/index.tpl @@ -79,6 +79,7 @@ function createDashboard() { var type = ($('#dashboard_type_empty:checked').length > 0) ? 'empty' : 'default'; piwikHelper.modalConfirm('#createDashboardConfirm', {yes: function(){ var dashboardName = $('#createDashboardName').attr('value'); + piwikHelper.showAjaxLoading(); var ajaxRequest = { type: 'GET',