mirror of
https://github.com/colymba/GridFieldBulkEditingTools.git
synced 2024-10-22 11:05:57 +02:00
doBulkActionButton only affect its own GridField
This commit is contained in:
parent
e4f954583e
commit
a8e2b2034e
@ -107,7 +107,7 @@
|
||||
action = $('select#bulkActionName').val();
|
||||
if ( action == 'edit' )
|
||||
{
|
||||
$('.col-bulkSelect input:checked').each(function(){
|
||||
$(this).parents('.ss-gridfield-table').find('td.col-bulkSelect input:checked').each(function(){
|
||||
ids.push( parseInt( $(this).attr('name').split('_')[1] ) );
|
||||
});
|
||||
if(ids.length > 0) $(this).attr('href', $(this).data('url')+'/'+action+'?records[]='+ids.join('&records[]=') );
|
||||
@ -122,7 +122,7 @@
|
||||
url = $(this).data('url');
|
||||
cacheBuster = new Date().getTime();
|
||||
|
||||
$('.col-bulkSelect input:checked').each(function(){
|
||||
$(this).parents('.ss-gridfield-table').find('td.col-bulkSelect input:checked').each(function(){
|
||||
ids.push( parseInt( $(this).attr('name').split('_')[1] ) );
|
||||
});
|
||||
data.records = ids;
|
||||
|
Loading…
Reference in New Issue
Block a user