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;
|
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
|
.cms table.ss-gridfield-table tbody td a.tempDisabledEditLink
|
||||||
{
|
{
|
||||||
background: url('../../framework/admin/images/btn-icon/document--pencil.png') no-repeat 2px 0px;
|
background: url('../../framework/admin/images/btn-icon/document--pencil.png') no-repeat 2px 0px;
|
||||||
|
@ -112,6 +112,8 @@
|
|||||||
cacheBuster = new Date().getTime()
|
cacheBuster = new Date().getTime()
|
||||||
;
|
;
|
||||||
|
|
||||||
|
$btn.addClass('loading');
|
||||||
|
|
||||||
if ( ids.length <= 0 )
|
if ( ids.length <= 0 )
|
||||||
{
|
{
|
||||||
alert( ss.i18n._t('GridFieldBulkTools.BULKACTION_EMPTY_SELECT') );
|
alert( ss.i18n._t('GridFieldBulkTools.BULKACTION_EMPTY_SELECT') );
|
||||||
@ -130,6 +132,7 @@
|
|||||||
context: $(this)
|
context: $(this)
|
||||||
}).done(function() {
|
}).done(function() {
|
||||||
$(this).parents('.ss-gridfield').entwine('.').entwine('ss').reload();
|
$(this).parents('.ss-gridfield').entwine('.').entwine('ss').reload();
|
||||||
|
$btn.removeClass('loading');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
<th class="extra bulkmanagerheading" colspan="$Colspan">
|
<th class="extra bulkmanagerheading" colspan="$Colspan">
|
||||||
|
|
||||||
$Menu
|
$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
|
$Button.Label
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user