修该讨论区帖子时,如描述为空,跳转到edit页面改为js报错

This commit is contained in:
sw 2014-12-18 16:02:33 +08:00
parent 0f9a82637e
commit dc9f5d0730
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@
} do |f| %>
<%= render :partial => 'form',
:locals => {:f => f, :replying => !@message.parent.nil?} %>
<a href="#" onclick="$('#message-form').submit();" class="ButtonColor m3p10">
<a href="#" onclick="if(regexSubject()&&regexContent()){$('#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" %>