mirror of
https://github.com/colymba/GridFieldBulkEditingTools.git
synced 2024-10-22 11:05:57 +02:00
Merge pull request #59 from daniquilez/master
improvement on addBulkAction function.
This commit is contained in:
commit
f259a4af99
@ -211,9 +211,9 @@ class GridFieldBulkManager implements GridField_HTMLProvider, GridField_ColumnPr
|
|||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
$config = array(
|
$config = array(
|
||||||
'isAjax' => true,
|
'isAjax' => isset($config['isAjax']) ? $config['isAjax'] : true,
|
||||||
'icon' => 'accept',
|
'icon' => isset($config['icon']) ? $config['icon'] : 'accept',
|
||||||
'isDestructive' => false
|
'isDestructive' => isset($config['isDestructive']) ? $config['isDestructive'] : false
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -379,4 +379,4 @@ class GridFieldBulkManager implements GridField_HTMLProvider, GridField_ColumnPr
|
|||||||
|
|
||||||
user_error("Unable to find matching bulk action handler for ".$request->remaining().'.', E_USER_ERROR);
|
user_error("Unable to find matching bulk action handler for ".$request->remaining().'.', E_USER_ERROR);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user