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.
This commit is contained in:
parent
9d13deee46
commit
8686a16e0d
|
@ -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;",
|
||||||
|
|
Loading…
Reference in New Issue