Set focus to comment field for acknowledgements, downtimes and comments

refs #13535
This commit is contained in:
Alexander A. Klimov 2017-02-10 11:24:28 +01:00
parent 80d3abed9d
commit 9e26359c62
3 changed files with 6 additions and 3 deletions

View File

@ -54,7 +54,8 @@ class AcknowledgeProblemCommandForm extends ObjectsCommandForm
'If you work with other administrators, you may find it useful to share information about the' 'If you work with other administrators, you may find it useful to share information about the'
. ' the host or service that is having problems. Make sure you enter a brief description of' . ' the host or service that is having problems. Make sure you enter a brief description of'
. ' what you are doing.' . ' what you are doing.'
) ),
'attribs' => array('class' => 'autofocus')
) )
), ),
array( array(

View File

@ -45,7 +45,8 @@ class AddCommentCommandForm extends ObjectsCommandForm
'If you work with other administrators, you may find it useful to share information about the' 'If you work with other administrators, you may find it useful to share information about the'
. ' the host or service that is having problems. Make sure you enter a brief description of' . ' the host or service that is having problems. Make sure you enter a brief description of'
. ' what you are doing.' . ' what you are doing.'
) ),
'attribs' => array('class' => 'autofocus')
) )
); );
if (! $this->getBackend()->isIcinga2()) { if (! $this->getBackend()->isIcinga2()) {

View File

@ -67,7 +67,8 @@ class ScheduleServiceDowntimeCommandForm extends ObjectsCommandForm
'If you work with other administrators, you may find it useful to share information about the' 'If you work with other administrators, you may find it useful to share information about the'
. ' the host or service that is having problems. Make sure you enter a brief description of' . ' the host or service that is having problems. Make sure you enter a brief description of'
. ' what you are doing.' . ' what you are doing.'
) ),
'attribs' => array('class' => 'autofocus')
) )
), ),
array( array(