Skip to content

Commit

Permalink
Allow overriding $targetFragment
Browse files Browse the repository at this point in the history
  • Loading branch information
nedmas committed May 13, 2015
1 parent 2919e7a commit d6a5523
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/GridFieldMultiDeleteButton.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ class GridFieldMultiDeleteButton extends GridFieldApplyToMultipleRows
/**
* Shortcut to create a button that deletes all selected entries
*/
public function __construct() {
parent::__construct('deleteselected', 'Delete Selected', array($this, 'deleteRecord'), 'after', array(
public function __construct($targetFragment = 'after') {
parent::__construct('deleteselected', 'Delete Selected', array($this, 'deleteRecord'), $targetFragment, array(
'icon' => 'delete',
'class' => 'deleteSelected',
'confirm' => _t('GridFieldMultiDeleteButton.Confirm', 'Are you sure you want to delete all selected items?'),
Expand Down

0 comments on commit d6a5523

Please sign in to comment.