FIX action btn + loading indicator

.doBulkActionButton btn doesn't trigger cms actions and now has loading
indicator
This commit is contained in:
colymba 2013-12-05 18:54:17 +02:00
parent 425cf9cffe
commit 06e82405e5
3 changed files with 9 additions and 1 deletions

View File

@ -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;

View File

@ -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{

View File

@ -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>