Commit 8686a16e authored by Gregor Schmidt's avatar Gregor Schmidt

Changing the way, links to the wiki_syntax help page are generated

This fixes a comment, that was sitting there for more than 2 years.
parent 9d13deee
...@@ -20,9 +20,8 @@ module Redmine ...@@ -20,9 +20,8 @@ module Redmine
module Textile module Textile
module Helper module Helper
def wikitoolbar_for(field_id) def wikitoolbar_for(field_id)
# Is there a simple way to link to a public resource? url = url_for(:controller => 'help', :action => 'wiki_syntax')
url = "#{Redmine::Utils.relative_url_root}/help/wiki_syntax.html"
help_link = l(:setting_text_formatting) + ': ' + help_link = l(:setting_text_formatting) + ': ' +
link_to(l(:label_help), url, link_to(l(:label_help), url,
:onclick => "window.open(\"#{ url }\", \"\", \"resizable=yes, location=no, width=300, height=640, menubar=no, status=no, scrollbars=yes\"); return false;", :onclick => "window.open(\"#{ url }\", \"\", \"resizable=yes, location=no, width=300, height=640, menubar=no, status=no, scrollbars=yes\"); return false;",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment