|
|
|
@ -28,9 +28,6 @@ module Redmine |
|
|
|
|
:onclick => "window.open(\"#{ url }\", \"\", \"resizable=yes, location=no, width=300, height=640, menubar=no, status=no, scrollbars=yes\"); return false;", |
|
|
|
|
:tabindex => -1) |
|
|
|
|
|
|
|
|
|
javascript_include_tag('jstoolbar/jstoolbar') + |
|
|
|
|
javascript_include_tag('jstoolbar/textile') + |
|
|
|
|
javascript_include_tag("jstoolbar/lang/jstoolbar-#{current_language.to_s.downcase}") + |
|
|
|
|
javascript_tag("var wikiToolbar = new jsToolBar($('#{field_id}')); wikiToolbar.setHelpLink('#{help_link}'); wikiToolbar.draw();") |
|
|
|
|
end |
|
|
|
|
|
|
|
|
@ -39,7 +36,11 @@ module Redmine |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
def heads_for_wiki_formatter |
|
|
|
|
stylesheet_link_tag 'jstoolbar' |
|
|
|
|
@@heads_for_wiki_formatter ||= |
|
|
|
|
javascript_include_tag('jstoolbar/jstoolbar') + |
|
|
|
|
javascript_include_tag('jstoolbar/textile') + |
|
|
|
|
javascript_include_tag("jstoolbar/lang/jstoolbar-#{current_language.to_s.downcase}") + |
|
|
|
|
stylesheet_link_tag('jstoolbar') |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|