mirror of
https://github.com/colymba/GridFieldBulkEditingTools.git
synced 2024-10-22 09:05:57 +00:00
FIX check records selection first + spinner timing
Check if anything is selected first + fix start spinner titming
This commit is contained in:
parent
4de284d1c9
commit
e0d2c311b5
@ -111,6 +111,13 @@
|
||||
|
||||
cacheBuster = new Date().getTime()
|
||||
;
|
||||
|
||||
|
||||
if ( ids.length <= 0 )
|
||||
{
|
||||
alert( ss.i18n._t('GridFieldBulkManager.BULKACTION_EMPTY_SELECT') );
|
||||
return;
|
||||
}
|
||||
|
||||
if ( $btn.hasClass('ss-ui-action-destructive') )
|
||||
{
|
||||
@ -119,16 +126,10 @@
|
||||
e.preventDefault();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$btn.addClass('loading');
|
||||
|
||||
if ( ids.length <= 0 )
|
||||
{
|
||||
alert( ss.i18n._t('GridFieldBulkManager.BULKACTION_EMPTY_SELECT') );
|
||||
return;
|
||||
}
|
||||
|
||||
if ( config[action]['isAjax'] )
|
||||
{
|
||||
//if ( url.indexOf('?') !== -1 ) cacheBuster = '&cacheBuster=' + cacheBuster;
|
||||
|
Loading…
x
Reference in New Issue
Block a user