summaryrefslogtreecommitdiffstats
path: root/app/views/messages
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-07-22 13:29:26 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-07-22 13:29:26 +0000
commit6a2ca5e0342751b6d38a1a05ad25b5c0002d6e46 (patch)
treeaf09ea2d29ce61690b656be91fbf82a3009ea1ed /app/views/messages
parent387836f8aa736eba4dfe0da879ad71bbc19dd224 (diff)
downloadredmine-6a2ca5e0342751b6d38a1a05ad25b5c0002d6e46.tar.gz
redmine-6a2ca5e0342751b6d38a1a05ad25b5c0002d6e46.zip
JQuery in, Prototype/Scriptaculous out (#11445).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10068 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/messages')
-rw-r--r--app/views/messages/quote.js.erb10
1 files changed, 4 insertions, 6 deletions
diff --git a/app/views/messages/quote.js.erb b/app/views/messages/quote.js.erb
index 706aa3a72..fe4bed91a 100644
--- a/app/views/messages/quote.js.erb
+++ b/app/views/messages/quote.js.erb
@@ -1,6 +1,4 @@
-$('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;
+$('#message_subject').val("<%= raw escape_javascript(@subject) %>");
+$('#message_content').val("<%= raw escape_javascript(@content) %>");
+showAndScrollTo("reply", "message_content");
+$('#message_content').scrollTop = $('#message_content').scrollHeight - $('#message_content').clientHeight;