1.修改课程项目编辑讨论区帖子时按钮样式

2.修复修改课程项目编辑讨论区帖子时第一次点击确定失败
This commit is contained in:
sw 2014-11-25 10:52:07 +08:00
parent 5bcc76d399
commit 89e5eda397
1 changed files with 4 additions and 2 deletions

View File

@ -15,7 +15,9 @@
} do |f| %>
<%= render :partial => 'form',
:locals => {:f => f, :replying => !@message.parent.nil?} %>
<%= submit_tag l(:button_save) %>
<%= preview_link({:controller => 'messages', :action => 'preview', :board_id => @board, :id => @message}, 'message-form') %>
<a href="#" onclick="$('#message-form').submit();" class="ButtonColor m3p10">
<%= l(:button_save) %>
</a>
<%= link_to l(:button_cancel), board_message_url(@message.board, @message.root, :r => (@message.parent_id && @message.id)), :class => "ButtonColor m3p10" %>
<% end %>
<div id="preview" class="wiki"></div>