diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2015-04-20 12:14:04 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2015-04-20 12:14:04 +0000 |
commit | 958d93edbc6530962f369cc5525a0fd5aa43b609 (patch) | |
tree | 8ba303921cfd0d81254dcdc2253acd0651254d76 /lib | |
parent | 47a6a54e87d697c157cd2c2e4f795d29dfa422bb (diff) | |
download | redmine-958d93edbc6530962f369cc5525a0fd5aa43b609.tar.gz redmine-958d93edbc6530962f369cc5525a0fd5aa43b609.zip |
add markdown wiki syntax help to tool bar (#16373)
Contributed by Go MAEDA.
git-svn-id: http://svn.redmine.org/redmine/trunk@14191 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r-- | lib/redmine/wiki_formatting/markdown/helper.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/redmine/wiki_formatting/markdown/helper.rb b/lib/redmine/wiki_formatting/markdown/helper.rb index a4234fe85..ee4b30ff3 100644 --- a/lib/redmine/wiki_formatting/markdown/helper.rb +++ b/lib/redmine/wiki_formatting/markdown/helper.rb @@ -21,7 +21,8 @@ module Redmine module Helper def wikitoolbar_for(field_id) heads_for_wiki_formatter - javascript_tag("var wikiToolbar = new jsToolBar(document.getElementById('#{field_id}')); wikiToolbar.draw();") + url = "#{Redmine::Utils.relative_url_root}/help/#{current_language.to_s.downcase}/wiki_syntax_markdown.html" + javascript_tag("var wikiToolbar = new jsToolBar(document.getElementById('#{field_id}')); wikiToolbar.setHelpLink('#{escape_javascript url}'); wikiToolbar.draw();") end def initial_page_content(page) |