FIX: Bulk editing now works with multiple grid fields and managers on the page

Removed use of ID in JS
This commit is contained in:
Mellisa Hankins 2013-12-20 11:08:39 +11:00
parent 7332ed0b8c
commit 9a4d204c97
2 changed files with 4 additions and 4 deletions

View File

@ -29,11 +29,11 @@
onunmatch: function(){
},
onclick: function(e) {
$('#bulkSelectAll').prop('checked', '');
$(this).parents('.ss-gridfield-table').find('input.bulkSelectAll').prop('checked', '');
}
});
$('#bulkSelectAll').entwine({
$('input.bulkSelectAll').entwine({
onmatch: function(){
},
onunmatch: function(){
@ -106,7 +106,7 @@
url = $(this).data('url'),
ids = $('#bulkSelectAll').getSelectRecordsID(),
ids = $(this).parents('.bulkManagerOptions').find('input.bulkSelectAll:first').getSelectRecordsID(),
data = { records: ids },
cacheBuster = new Date().getTime()

View File

@ -8,6 +8,6 @@
</th>
<th class="extra bulkmanagerselect">
<input id="bulkSelectAll" class="no-change-track" type="checkbox" title="$Select.Label" name="toggleSelectAll" />
<input id="bulkSelectAll" class="no-change-track bulkSelectAll" type="checkbox" title="$Select.Label" name="toggleSelectAll" />
</th>
</tr>