mirror of
https://github.com/colymba/GridFieldBulkEditingTools.git
synced 2024-10-22 11:05:57 +02:00
FIX action btn + loading indicator
.doBulkActionButton btn doesn't trigger cms actions and now has loading indicator
This commit is contained in:
parent
425cf9cffe
commit
06e82405e5
@ -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;
|
||||
|
@ -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{
|
||||
|
@ -2,7 +2,7 @@
|
||||
<th class="extra bulkmanagerheading" colspan="$Colspan">
|
||||
|
||||
$Menu
|
||||
<a data-url="$Button.DataURL" data-config="$Button.DataConfig" class="doBulkActionButton action ss-ui-button cms-panel-link" data-icon="$Button.Icon">
|
||||
<a data-url="$Button.DataURL" data-config="$Button.DataConfig" class="doBulkActionButton ss-ui-button" data-icon="$Button.Icon">
|
||||
$Button.Label
|
||||
</a>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user