summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Sulfrian <alex@spline.inf.fu-berlin.de>2015-01-25 20:05:12 +0100
committerAlexander Sulfrian <alex@spline.inf.fu-berlin.de>2015-01-25 20:05:12 +0100
commit3c7d0237e5e8a783f35a989fd0c46031fdac5e3e (patch)
treea0689884fd8811bcd0d51235d92926c7ed0def68
parent2c777806beaf4827d5fe5ed520c7e6273e6eb303 (diff)
downloadDefaultRecipient-3c7d0237e5e8a783f35a989fd0c46031fdac5e3e.tar.gz
DefaultRecipient-3c7d0237e5e8a783f35a989fd0c46031fdac5e3e.tar.bz2
DefaultRecipient-3c7d0237e5e8a783f35a989fd0c46031fdac5e3e.zip
Set focus to text field.
-rw-r--r--Kernel/Output/HTML/DefaultRecipient.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/Kernel/Output/HTML/DefaultRecipient.pm b/Kernel/Output/HTML/DefaultRecipient.pm
index 5e45b93..9b72bc6 100644
--- a/Kernel/Output/HTML/DefaultRecipient.pm
+++ b/Kernel/Output/HTML/DefaultRecipient.pm
@@ -98,6 +98,11 @@ sub Run {
}
}
+ # set focus to text field
+ $Self->{LayoutObject}->AddJSOnDocumentComplete(
+ Code => "\$('#RichText').focus();"
+ );
+
return $Param{Data};
}