diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-06-07 11:42:37 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-06-07 11:42:37 +0000 |
commit | 956ad0a3f954d71240e454df950cddfc230076bf (patch) | |
tree | d3572daa72546e8653a5a8eb267009fd8cc549d0 /app/controllers | |
parent | 6d5db302eeabd3a64ba6c1106e3eadde1ad05aae (diff) | |
download | redmine-956ad0a3f954d71240e454df950cddfc230076bf.tar.gz redmine-956ad0a3f954d71240e454df950cddfc230076bf.zip |
Fixed: Reply/Quote Function Newline Issue in Internet Explorer (#1362).
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1501 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/issues_controller.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/controllers/issues_controller.rb b/app/controllers/issues_controller.rb index 682a0cc6b..c042a80ef 100644 --- a/app/controllers/issues_controller.rb +++ b/app/controllers/issues_controller.rb @@ -217,10 +217,10 @@ class IssuesController < ApplicationController user = @issue.author text = @issue.description end - content = "#{ll(Setting.default_language, :text_user_wrote, user)}\n> " - content << text.to_s.strip.gsub(%r{<pre>((.|\s)*?)</pre>}m, '[...]').gsub("\n", "\n> ") + "\n\n" + 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.replace_html "notes", content + page.<< "$('notes').value = \"#{content}\";" page.show 'update' page << "Form.Element.focus('notes');" page << "Element.scrollTo('update');" |