]> source.dussan.org Git - redmine.git/commitdiff
Update MessagesController#quote to match the input id changed in r7682 (#9672).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 27 Nov 2011 21:30:50 +0000 (21:30 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 27 Nov 2011 21:30:50 +0000 (21:30 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7961 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/messages_controller.rb

index bcd5056ad5687ce806083227e537f366ba7ed279..1db3440e8acdd75409d94e19201ac5bb81623d14 100644 (file)
@@ -115,7 +115,7 @@ class MessagesController < ApplicationController
     content = "#{ll(Setting.default_language, :text_user_wrote, user)}\\n> "
     content << text.to_s.strip.gsub(%r{<pre>((.|\s)*?)</pre>}m, '[...]').gsub('"', '\"').gsub(/(\r?\n|\r\n?)/, "\\n> ") + "\\n\\n"
     render(:update) { |page|
-      page << "$('reply_subject').value = \"#{subject}\";"
+      page << "$('message_subject').value = \"#{subject}\";"
       page.<< "$('message_content').value = \"#{content}\";"
       page.show 'reply'
       page << "Form.Element.focus('message_content');"