@@ -17,25 +17,11 | |||||
17 | <p><%= submit_tag l(:button_save) %> |
|
17 | <p><%= submit_tag l(:button_save) %> | |
18 | <%= link_to_remote l(:label_preview), |
|
18 | <%= link_to_remote l(:label_preview), | |
19 | { :url => { :controller => 'wiki', :action => 'preview', :id => @project, :page => @page.title }, |
|
19 | { :url => { :controller => 'wiki', :action => 'preview', :id => @project, :page => @page.title }, | |
20 |
:method => ' |
|
20 | :method => 'post', | |
21 | :update => 'preview', |
|
21 | :update => 'preview', | |
22 | :with => "Form.serialize('wiki_form')" |
|
22 | :with => "Form.serialize('wiki_form')" | |
23 | } %></p> |
|
23 | } %></p> | |
24 |
|
24 | <%= wikitoolbar_for 'content_text' %> | ||
25 | <% end %> |
|
|||
26 |
|
||||
27 | <% if Setting.text_formatting == 'textile' %> |
|
|||
28 | <%= javascript_include_tag 'jstoolbar' %> |
|
|||
29 | <script type="text/javascript"> |
|
|||
30 | //<![CDATA[ |
|
|||
31 | if (document.getElementById) { |
|
|||
32 | if (document.getElementById('content_text')) { |
|
|||
33 | var commentTb = new jsToolBar(document.getElementById('content_text')); |
|
|||
34 | commentTb.draw(); |
|
|||
35 | } |
|
|||
36 | } |
|
|||
37 | //]]> |
|
|||
38 | </script> |
|
|||
39 | <% end %> |
|
25 | <% end %> | |
40 |
|
26 | |||
41 | <div id="preview" class="wiki"></div> No newline at end of file |
|
27 | <div id="preview" class="wiki"></div> |
General Comments 0
You need to be logged in to leave comments.
Login now