mirror of
https://github.com/colymba/GridFieldBulkEditingTools.git
synced 2024-10-22 11:05:57 +02:00
Merge pull request #52 from mi3ll/patch-1
FIX: Bulk editing now works with multiple grid fields and managers on the page
This commit is contained in:
commit
4de284d1c9
@ -29,11 +29,11 @@
|
|||||||
onunmatch: function(){
|
onunmatch: function(){
|
||||||
},
|
},
|
||||||
onclick: function(e) {
|
onclick: function(e) {
|
||||||
$('#bulkSelectAll').prop('checked', '');
|
$(this).parents('.ss-gridfield-table').find('input.bulkSelectAll').prop('checked', '');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#bulkSelectAll').entwine({
|
$('input.bulkSelectAll').entwine({
|
||||||
onmatch: function(){
|
onmatch: function(){
|
||||||
},
|
},
|
||||||
onunmatch: function(){
|
onunmatch: function(){
|
||||||
@ -106,7 +106,7 @@
|
|||||||
|
|
||||||
url = $(this).data('url'),
|
url = $(this).data('url'),
|
||||||
|
|
||||||
ids = $('#bulkSelectAll').getSelectRecordsID(),
|
ids = $(this).parents('.bulkManagerOptions').find('input.bulkSelectAll:first').getSelectRecordsID(),
|
||||||
data = { records: ids },
|
data = { records: ids },
|
||||||
|
|
||||||
cacheBuster = new Date().getTime()
|
cacheBuster = new Date().getTime()
|
||||||
|
@ -8,6 +8,6 @@
|
|||||||
|
|
||||||
</th>
|
</th>
|
||||||
<th class="extra bulkmanagerselect">
|
<th class="extra bulkmanagerselect">
|
||||||
<input id="bulkSelectAll" class="no-change-track" type="checkbox" title="$Select.Label" name="toggleSelectAll" />
|
<input class="no-change-track bulkSelectAll" type="checkbox" title="$Select.Label" name="toggleSelectAll" />
|
||||||
</th>
|
</th>
|
||||||
</tr>
|
</tr>
|
Loading…
Reference in New Issue
Block a user