FIX check records selection first + spinner timing

Check if anything is selected first + fix start spinner titming
This commit is contained in:
colymba 2014-01-03 10:10:49 +02:00
parent 4de284d1c9
commit e0d2c311b5
1 changed files with 8 additions and 7 deletions

View File

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