Merge pull request #2733 from Icinga/feature/set-focus-to-comment-field-for-comments-13535

Set focus to comment field for acknowledgements, downtimes and comments
This commit is contained in:
Eric Lippmann 2017-03-28 10:52:50 +02:00
commit 30788ceed0
3 changed files with 6 additions and 3 deletions

View File

@ -56,7 +56,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(