@@ -115,7 +115,7 class MessagesController < ApplicationController | |||||
115 | content = "#{ll(Setting.default_language, :text_user_wrote, user)}\\n> " |
|
115 | content = "#{ll(Setting.default_language, :text_user_wrote, user)}\\n> " | |
116 | content << text.to_s.strip.gsub(%r{<pre>((.|\s)*?)</pre>}m, '[...]').gsub('"', '\"').gsub(/(\r?\n|\r\n?)/, "\\n> ") + "\\n\\n" |
|
116 | content << text.to_s.strip.gsub(%r{<pre>((.|\s)*?)</pre>}m, '[...]').gsub('"', '\"').gsub(/(\r?\n|\r\n?)/, "\\n> ") + "\\n\\n" | |
117 | render(:update) { |page| |
|
117 | render(:update) { |page| | |
118 |
page << "$(' |
|
118 | page << "$('message_subject').value = \"#{subject}\";" | |
119 | page.<< "$('message_content').value = \"#{content}\";" |
|
119 | page.<< "$('message_content').value = \"#{content}\";" | |
120 | page.show 'reply' |
|
120 | page.show 'reply' | |
121 | page << "Form.Element.focus('message_content');" |
|
121 | page << "Form.Element.focus('message_content');" |
General Comments 0
You need to be logged in to leave comments.
Login now