mirror of
https://github.com/colymba/GridFieldBulkEditingTools.git
synced 2024-10-22 11:05:57 +02:00
Add select option
This commit is contained in:
parent
2ba88c2108
commit
ad919af544
@ -184,10 +184,15 @@ class GridFieldBulkManager implements GridField_HTMLProvider, GridField_ColumnPr
|
|||||||
GO
|
GO
|
||||||
</a>';
|
</a>';
|
||||||
|
|
||||||
|
$toggleSelectAllHTML = '
|
||||||
|
<span>Select all <input id="toggleSelectAll" type="checkbox" title="select all" name="toggleSelectAll" /></span>
|
||||||
|
';
|
||||||
|
|
||||||
$html = '<div id="bulkManagerOptions">'.
|
$html = '<div id="bulkManagerOptions">'.
|
||||||
$dropDownActionList->FieldHolder().
|
$dropDownActionList->FieldHolder().
|
||||||
//$actionButton->Field().
|
//$actionButton->Field().
|
||||||
$actionButtonHTML.
|
$actionButtonHTML.
|
||||||
|
$toggleSelectAllHTML.
|
||||||
'</div>';
|
'</div>';
|
||||||
|
|
||||||
return array(
|
return array(
|
||||||
|
@ -48,6 +48,17 @@
|
|||||||
}*/
|
}*/
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$('#toggleSelectAll').entwine({
|
||||||
|
onmatch: function(){
|
||||||
|
},
|
||||||
|
onunmatch: function(){
|
||||||
|
},
|
||||||
|
onclick: function(){
|
||||||
|
var state = $(this).prop('checked');
|
||||||
|
$('td.col-bulkSelect input').each(function(){ $(this).prop('checked', state); });
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
$('select#bulkActionName').entwine({
|
$('select#bulkActionName').entwine({
|
||||||
onmatch: function(){
|
onmatch: function(){
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user