##// END OF EJS Templates
Fixed: syntax highlight doesn't appear in new ticket preview (#1976)....
Jean-Philippe Lang -
r2220:a66b1e77da84
parent child
Show More
@@ -1,19 +1,23
1 <h2><%=l(:label_issue_new)%></h2>
1 <h2><%=l(:label_issue_new)%></h2>
2
2
3 <% labelled_tabular_form_for :issue, @issue,
3 <% labelled_tabular_form_for :issue, @issue,
4 :html => {:multipart => true, :id => 'issue-form'} do |f| %>
4 :html => {:multipart => true, :id => 'issue-form'} do |f| %>
5 <%= error_messages_for 'issue' %>
5 <%= error_messages_for 'issue' %>
6 <div class="box">
6 <div class="box">
7 <%= render :partial => 'issues/form', :locals => {:f => f} %>
7 <%= render :partial => 'issues/form', :locals => {:f => f} %>
8 </div>
8 </div>
9 <%= submit_tag l(:button_create) %>
9 <%= submit_tag l(:button_create) %>
10 <%= link_to_remote l(:label_preview),
10 <%= link_to_remote l(:label_preview),
11 { :url => { :controller => 'issues', :action => 'preview', :project_id => @project },
11 { :url => { :controller => 'issues', :action => 'preview', :project_id => @project },
12 :method => 'post',
12 :method => 'post',
13 :update => 'preview',
13 :update => 'preview',
14 :with => "Form.serialize('issue-form')",
14 :with => "Form.serialize('issue-form')",
15 :complete => "Element.scrollTo('preview')"
15 :complete => "Element.scrollTo('preview')"
16 }, :accesskey => accesskey(:preview) %>
16 }, :accesskey => accesskey(:preview) %>
17 <% end %>
17 <% end %>
18
18
19 <div id="preview" class="wiki"></div>
19 <div id="preview" class="wiki"></div>
20
21 <% content_for :header_tags do %>
22 <%= stylesheet_link_tag 'scm' %>
23 <% end %>
General Comments 0
You need to be logged in to leave comments. Login now