|
|
@ -19,11 +19,13 @@ |
|
|
|
{ :url => { :controller => 'wiki', :action => 'preview', :id => @project, :page => @page.title }, |
|
|
|
{ :url => { :controller => 'wiki', :action => 'preview', :id => @project, :page => @page.title }, |
|
|
|
:method => 'post', |
|
|
|
:method => 'post', |
|
|
|
:update => 'preview', |
|
|
|
:update => 'preview', |
|
|
|
:with => "Form.serialize('wiki_form')" |
|
|
|
:with => "Form.serialize('wiki_form')", |
|
|
|
|
|
|
|
:complete => "location.href='#preview-top'" |
|
|
|
} %></p> |
|
|
|
} %></p> |
|
|
|
<%= wikitoolbar_for 'content_text' %> |
|
|
|
<%= wikitoolbar_for 'content_text' %> |
|
|
|
<% end %> |
|
|
|
<% end %> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a name="preview-top"></a> |
|
|
|
<div id="preview" class="wiki"></div> |
|
|
|
<div id="preview" class="wiki"></div> |
|
|
|
|
|
|
|
|
|
|
|
<% content_for :header_tags do %> |
|
|
|
<% content_for :header_tags do %> |
|
|
|