mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-30 09:14:09 +02:00
QuickForm: preserve existing classes
This commit is contained in:
parent
bb2401017e
commit
1e8adb8586
@ -91,7 +91,12 @@ abstract class QuickForm extends QuickBaseForm
|
|||||||
|
|
||||||
protected function setPreferredDecorators()
|
protected function setPreferredDecorators()
|
||||||
{
|
{
|
||||||
$this->setAttrib('class', 'autofocus');
|
$current = $this->getAttrib('class');
|
||||||
|
if ($current) {
|
||||||
|
$this->setAttrib('class', "$current autofocus");
|
||||||
|
} else {
|
||||||
|
$this->setAttrib('class', 'autofocus');
|
||||||
|
}
|
||||||
$this->setDecorators(
|
$this->setDecorators(
|
||||||
array(
|
array(
|
||||||
'Description',
|
'Description',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user