From a8e2b2034ec419f857fd03389519ff92f75aac15 Mon Sep 17 00:00:00 2001 From: colymba Date: Mon, 29 Apr 2013 18:37:48 +0300 Subject: [PATCH] doBulkActionButton only affect its own GridField --- javascript/GridFieldBulkManager.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/javascript/GridFieldBulkManager.js b/javascript/GridFieldBulkManager.js index 1b61194..0f9152f 100644 --- a/javascript/GridFieldBulkManager.js +++ b/javascript/GridFieldBulkManager.js @@ -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;