Replaced usage of ResetFormAction (#1812)

See https://github.com/silverstripe/silverstripe-framework/pull/6883
This commit is contained in:
Ingo Schommer 2017-05-09 11:11:08 +12:00 committed by Damian Mooyman
parent c65d48f112
commit 4923a2597b

View File

@ -42,7 +42,6 @@ use SilverStripe\Forms\GridField\GridFieldSortableHeader;
use SilverStripe\Forms\HiddenField;
use SilverStripe\Forms\LabelField;
use SilverStripe\Forms\LiteralField;
use SilverStripe\Forms\ResetFormAction;
use SilverStripe\Forms\TabSet;
use SilverStripe\Forms\TextField;
use SilverStripe\ORM\ArrayList;
@ -836,7 +835,8 @@ class CMSMain extends LeftAndMain implements CurrentPageIdentifier, PermissionPr
$actions = new FieldList(
FormAction::create('doSearch', _t('SilverStripe\\CMS\\Controllers\\CMSMain.APPLY_FILTER', 'Search'))
->addExtraClass('btn btn-primary'),
ResetFormAction::create('clear', _t('SilverStripe\\CMS\\Controllers\\CMSMain.CLEAR_FILTER', 'Clear'))
FormAction::create('clear', _t('SilverStripe\\CMS\\Controllers\\CMSMain.CLEAR_FILTER', 'Clear'))
->setAttribute('type', 'reset')
->addExtraClass('btn btn-secondary')
);