@@ -1,5 +1,5 | |||||
1 | # Redmine - project management software |
|
1 | # Redmine - project management software | |
2 |
# Copyright (C) 2006-20 |
|
2 | # Copyright (C) 2006-2011 Jean-Philippe Lang | |
3 | # |
|
3 | # | |
4 | # This program is free software; you can redistribute it and/or |
|
4 | # This program is free software; you can redistribute it and/or | |
5 | # modify it under the terms of the GNU General Public License |
|
5 | # modify it under the terms of the GNU General Public License | |
@@ -23,10 +23,8 module Redmine | |||||
23 | heads_for_wiki_formatter |
|
23 | heads_for_wiki_formatter | |
24 | # Is there a simple way to link to a public resource? |
|
24 | # Is there a simple way to link to a public resource? | |
25 | url = "#{Redmine::Utils.relative_url_root}/help/wiki_syntax.html" |
|
25 | url = "#{Redmine::Utils.relative_url_root}/help/wiki_syntax.html" | |
26 |
|
26 | help_link = link_to(l(:setting_text_formatting), url, | ||
27 | help_link = l(:setting_text_formatting) + ': ' + |
|
27 | :onclick => "window.open(\"#{ url }\", \"\", \"resizable=yes, location=no, width=300, height=640, menubar=no, status=no, scrollbars=yes\"); return false;") | |
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;") |
|
|||
30 |
|
28 | |||
31 | javascript_tag("var wikiToolbar = new jsToolBar($('#{field_id}')); wikiToolbar.setHelpLink('#{help_link}'); wikiToolbar.draw();") |
|
29 | javascript_tag("var wikiToolbar = new jsToolBar($('#{field_id}')); wikiToolbar.setHelpLink('#{help_link}'); wikiToolbar.draw();") | |
32 | end |
|
30 | end |
@@ -44,7 +44,8 | |||||
44 | margin-right: 4px; |
|
44 | margin-right: 4px; | |
45 | } |
|
45 | } | |
46 |
|
46 | |||
47 |
.jstElements .help { float: right; margin-right: |
|
47 | .jstElements .help { float: right; margin-right: 0.5em; padding-top: 8px; font-size: 0.9em; } | |
|
48 | .jstElements .help a {padding: 2px 0 2px 20px; background: url(../images/help.png) no-repeat 0 50%;} | |||
48 |
|
49 | |||
49 | /* Buttons |
|
50 | /* Buttons | |
50 | -------------------------------------------------------- */ |
|
51 | -------------------------------------------------------- */ |
General Comments 0
You need to be logged in to leave comments.
Login now