@@ -17,25 +17,11 | |||
|
17 | 17 | <p><%= submit_tag l(:button_save) %> |
|
18 | 18 | <%= link_to_remote l(:label_preview), |
|
19 | 19 | { :url => { :controller => 'wiki', :action => 'preview', :id => @project, :page => @page.title }, |
|
20 |
:method => ' |
|
|
20 | :method => 'post', | |
|
21 | 21 | :update => 'preview', |
|
22 | 22 | :with => "Form.serialize('wiki_form')" |
|
23 | 23 | } %></p> |
|
24 | ||
|
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> | |
|
24 | <%= wikitoolbar_for 'content_text' %> | |
|
39 | 25 | <% end %> |
|
40 | 26 | |
|
41 | 27 | <div id="preview" class="wiki"></div> |
General Comments 0
You need to be logged in to leave comments.
Login now