From 9e26359c62fdc8862cbd21520e22a80ce8def321 Mon Sep 17 00:00:00 2001 From: "Alexander A. Klimov" Date: Fri, 10 Feb 2017 11:24:28 +0100 Subject: [PATCH] Set focus to comment field for acknowledgements, downtimes and comments refs #13535 --- .../forms/Command/Object/AcknowledgeProblemCommandForm.php | 3 ++- .../application/forms/Command/Object/AddCommentCommandForm.php | 3 ++- .../Command/Object/ScheduleServiceDowntimeCommandForm.php | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/modules/monitoring/application/forms/Command/Object/AcknowledgeProblemCommandForm.php b/modules/monitoring/application/forms/Command/Object/AcknowledgeProblemCommandForm.php index 180719ca7..451ba6d86 100644 --- a/modules/monitoring/application/forms/Command/Object/AcknowledgeProblemCommandForm.php +++ b/modules/monitoring/application/forms/Command/Object/AcknowledgeProblemCommandForm.php @@ -54,7 +54,8 @@ class AcknowledgeProblemCommandForm extends ObjectsCommandForm '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' . ' what you are doing.' - ) + ), + 'attribs' => array('class' => 'autofocus') ) ), array( diff --git a/modules/monitoring/application/forms/Command/Object/AddCommentCommandForm.php b/modules/monitoring/application/forms/Command/Object/AddCommentCommandForm.php index 3cff2cf7c..1b673d226 100644 --- a/modules/monitoring/application/forms/Command/Object/AddCommentCommandForm.php +++ b/modules/monitoring/application/forms/Command/Object/AddCommentCommandForm.php @@ -45,7 +45,8 @@ class AddCommentCommandForm extends ObjectsCommandForm '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' . ' what you are doing.' - ) + ), + 'attribs' => array('class' => 'autofocus') ) ); if (! $this->getBackend()->isIcinga2()) { diff --git a/modules/monitoring/application/forms/Command/Object/ScheduleServiceDowntimeCommandForm.php b/modules/monitoring/application/forms/Command/Object/ScheduleServiceDowntimeCommandForm.php index 14ac85120..96bf92fbc 100644 --- a/modules/monitoring/application/forms/Command/Object/ScheduleServiceDowntimeCommandForm.php +++ b/modules/monitoring/application/forms/Command/Object/ScheduleServiceDowntimeCommandForm.php @@ -67,7 +67,8 @@ class ScheduleServiceDowntimeCommandForm extends ObjectsCommandForm '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' . ' what you are doing.' - ) + ), + 'attribs' => array('class' => 'autofocus') ) ), array(