Removing redundant function

At the moment form actions (buttons) have the classes 'action action' as default. This is because the extraClass function adds 'action' and then calls the parent method. The parent then includes the $this->Type() ('action') again.

So I've remove this overloading of extraClass
This commit is contained in:
Daniel Hensby 2013-02-18 16:38:15 +00:00
parent 0c6ac1960e
commit b7e34bd54c

View File

@ -121,10 +121,6 @@ class FormAction extends FormField {
return $this->useButtonTag;
}
public function extraClass() {
return 'action ' . parent::extraClass();
}
/**
* Does not transform to readonly by purpose.
* Globally disabled buttons would break the CMS.