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:
Thierry François 2014-01-02 23:58:55 -08:00
commit 4de284d1c9
2 changed files with 4 additions and 4 deletions

View File

@ -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()

View File

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