diff --git a/css/GridFieldBulkManager.css b/css/GridFieldBulkManager.css index 8c63718..667a085 100644 --- a/css/GridFieldBulkManager.css +++ b/css/GridFieldBulkManager.css @@ -30,6 +30,11 @@ vertical-align: top; } +.doBulkActionButton.loading .ui-icon +{ + background: transparent url(../../framework/images/network-save.gif) no-repeat 0 0; +} + .cms table.ss-gridfield-table tbody td a.tempDisabledEditLink { background: url('../../framework/admin/images/btn-icon/document--pencil.png') no-repeat 2px 0px; diff --git a/javascript/GridFieldBulkManager.js b/javascript/GridFieldBulkManager.js index ba6a4d3..430263d 100644 --- a/javascript/GridFieldBulkManager.js +++ b/javascript/GridFieldBulkManager.js @@ -112,6 +112,8 @@ cacheBuster = new Date().getTime() ; + $btn.addClass('loading'); + if ( ids.length <= 0 ) { alert( ss.i18n._t('GridFieldBulkTools.BULKACTION_EMPTY_SELECT') ); @@ -130,6 +132,7 @@ context: $(this) }).done(function() { $(this).parents('.ss-gridfield').entwine('.').entwine('ss').reload(); + $btn.removeClass('loading'); }); } else{ diff --git a/templates/BulkManagerButtons.ss b/templates/BulkManagerButtons.ss index 5e22fbf..bffa31d 100644 --- a/templates/BulkManagerButtons.ss +++ b/templates/BulkManagerButtons.ss @@ -2,7 +2,7 @@