summaryrefslogtreecommitdiffstats
path: root/app/views/messages
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-07-19 18:23:45 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-07-19 18:23:45 +0000
commite8469e2c5b41e59a1a204ac730e2c3ab9261b8ff (patch)
tree3b8963c3fb5c9190b25dbef4babe7c962900054e /app/views/messages
parent3386008491aff7d8a3e10d4d7fa84108ce5a8a38 (diff)
downloadredmine-e8469e2c5b41e59a1a204ac730e2c3ab9261b8ff.tar.gz
redmine-e8469e2c5b41e59a1a204ac730e2c3ab9261b8ff.zip
Removes RJS from MessagesController.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10053 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/messages')
-rw-r--r--app/views/messages/quote.js.erb6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/views/messages/quote.js.erb b/app/views/messages/quote.js.erb
new file mode 100644
index 000000000..706aa3a72
--- /dev/null
+++ b/app/views/messages/quote.js.erb
@@ -0,0 +1,6 @@
+$('message_subject').value = "<%= raw escape_javascript(@subject) %>";
+$('message_content').value = "<%= raw escape_javascript(@content) %>";
+Element.show('reply');
+Form.Element.focus('message_content');
+Element.scrollTo('reply');
+$('message_content').scrollTop = $('message_content').scrollHeight - $('message_content').clientHeight;