@@ -20,9 +20,13 module Redmine | |||
|
20 | 20 | module Textile |
|
21 | 21 | module Helper |
|
22 | 22 | def wikitoolbar_for(field_id) |
|
23 | # Is there a simple way to link to a public resource? | |
|
24 | prefix = (ActionController::Base.respond_to?(:relative_url_root) ? ActionController::Base.relative_url_root : ActionController::AbstractRequest.relative_url_root) | |
|
25 | url = "#{prefix}/help/wiki_syntax.html" | |
|
26 | ||
|
23 | 27 | help_link = l(:setting_text_formatting) + ': ' + |
|
24 |
link_to(l(:label_help), |
|
|
25 |
:onclick => "window.open(\"#{ |
|
|
28 | link_to(l(:label_help), url, | |
|
29 | :onclick => "window.open(\"#{ url }\", \"\", \"resizable=yes, location=no, width=300, height=640, menubar=no, status=no, scrollbars=yes\"); return false;") | |
|
26 | 30 | |
|
27 | 31 | javascript_include_tag('jstoolbar/jstoolbar') + |
|
28 | 32 | javascript_include_tag('jstoolbar/textile') + |
General Comments 0
You need to be logged in to leave comments.
Login now