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

refs #3011 display loading div if user performs an action like create, remove or reset

git-svn-id: http://dev.piwik.org/svn/trunk@6153 59fd770c-687e-43c8-a1e3-f5a4ff64c105
parent 1141b73e
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -164,8 +164,8 @@ ...@@ -164,8 +164,8 @@
success: function() { methods.loadDashboard.apply(this, [dashboardId])}, success: function() { methods.loadDashboard.apply(this, [dashboardId])},
data: { "idDashboard": dashboardId, "idSite": piwik.idSite } data: { "idDashboard": dashboardId, "idSite": piwik.idSite }
}; };
$.ajax(ajaxRequest);
piwikHelper.showAjaxLoading(); piwikHelper.showAjaxLoading();
$.ajax(ajaxRequest);
}, },
/** /**
...@@ -535,6 +535,7 @@ ...@@ -535,6 +535,7 @@
idDashboard: dashboardId idDashboard: dashboardId
} }
}; };
piwikHelper.showAjaxLoading();
$.ajax(ajaxRequest); $.ajax(ajaxRequest);
} }
......
...@@ -79,6 +79,7 @@ function createDashboard() { ...@@ -79,6 +79,7 @@ function createDashboard() {
var type = ($('#dashboard_type_empty:checked').length > 0) ? 'empty' : 'default'; var type = ($('#dashboard_type_empty:checked').length > 0) ? 'empty' : 'default';
piwikHelper.modalConfirm('#createDashboardConfirm', {yes: function(){ piwikHelper.modalConfirm('#createDashboardConfirm', {yes: function(){
var dashboardName = $('#createDashboardName').attr('value'); var dashboardName = $('#createDashboardName').attr('value');
piwikHelper.showAjaxLoading();
var ajaxRequest = var ajaxRequest =
{ {
type: 'GET', type: 'GET',
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter