@@ -11,7 +11,6 | |||||
11 | <%= stylesheet_link_tag 'rtl', :media => 'all' if l(:direction) == 'rtl' %> |
|
11 | <%= stylesheet_link_tag 'rtl', :media => 'all' if l(:direction) == 'rtl' %> | |
12 | <%= javascript_heads %> |
|
12 | <%= javascript_heads %> | |
13 | <%= heads_for_theme %> |
|
13 | <%= heads_for_theme %> | |
14 | <%= heads_for_wiki_formatter %> |
|
|||
15 | <!--[if IE 6]> |
|
14 | <!--[if IE 6]> | |
16 | <style type="text/css"> |
|
15 | <style type="text/css"> | |
17 | * html body{ width: expression( document.documentElement.clientWidth < 900 ? '900px' : '100%' ); } |
|
16 | * html body{ width: expression( document.documentElement.clientWidth < 900 ? '900px' : '100%' ); } |
@@ -20,6 +20,7 module Redmine | |||||
20 | module Textile |
|
20 | module Textile | |
21 | module Helper |
|
21 | module Helper | |
22 | def wikitoolbar_for(field_id) |
|
22 | def wikitoolbar_for(field_id) | |
|
23 | heads_for_wiki_formatter | |||
23 | # Is there a simple way to link to a public resource? |
|
24 | # Is there a simple way to link to a public resource? | |
24 | url = "#{Redmine::Utils.relative_url_root}/help/wiki_syntax.html" |
|
25 | url = "#{Redmine::Utils.relative_url_root}/help/wiki_syntax.html" | |
25 |
|
26 | |||
@@ -35,11 +36,15 module Redmine | |||||
35 | end |
|
36 | end | |
36 |
|
37 | |||
37 | def heads_for_wiki_formatter |
|
38 | def heads_for_wiki_formatter | |
38 |
|
|
39 | unless @heads_for_wiki_formatter_included | |
39 | javascript_include_tag('jstoolbar/jstoolbar') + |
|
40 | content_for :header_tags do | |
40 |
javascript_include_tag('jstoolbar/ |
|
41 | javascript_include_tag('jstoolbar/jstoolbar') + | |
41 |
javascript_include_tag( |
|
42 | javascript_include_tag('jstoolbar/textile') + | |
42 | stylesheet_link_tag('jstoolbar') |
|
43 | javascript_include_tag("jstoolbar/lang/jstoolbar-#{current_language.to_s.downcase}") + | |
|
44 | stylesheet_link_tag('jstoolbar') | |||
|
45 | end | |||
|
46 | @heads_for_wiki_formatter_included = true | |||
|
47 | end | |||
43 | end |
|
48 | end | |
44 | end |
|
49 | end | |
45 | end |
|
50 | end |
General Comments 0
You need to be logged in to leave comments.
Login now