mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-29 16:54:06 +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()
|
||||
{
|
||||
$this->setAttrib('class', 'autofocus');
|
||||
$current = $this->getAttrib('class');
|
||||
if ($current) {
|
||||
$this->setAttrib('class', "$current autofocus");
|
||||
} else {
|
||||
$this->setAttrib('class', 'autofocus');
|
||||
}
|
||||
$this->setDecorators(
|
||||
array(
|
||||
'Description',
|
||||
|
Loading…
x
Reference in New Issue
Block a user