mirror of
https://github.com/colymba/GridFieldBulkEditingTools.git
synced 2024-10-22 11:05:57 +02: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
@ -112,6 +112,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') )
|
||||
{
|
||||
if( !confirm(ss.i18n._t('GridFieldBulkManager.CONFIRM_DESTRUCTIVE_ACTION')) )
|
||||
@ -123,12 +130,6 @@
|
||||
|
||||
$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…
Reference in New Issue
Block a user