#1280 公共贴吧--新建帖子,置所有条件为空,点击发布按钮,却返回帖子列表及其他相关问题。修改:发布失败后停留在发帖页面

This commit is contained in:
z9hang 2014-09-22 10:35:18 +08:00
parent cc73b5e9d7
commit 086d99fe2a
2 changed files with 3 additions and 4 deletions

View File

@ -1,5 +1,5 @@
<!-- added by fq --> <!-- added by fq -->
<div id="add-memo" class='lz' style="display: none; padding: 20px;"> <div id="add-memo" class='lz' style="<% unless @memo.errors.any?%>display: none;<% end %> padding: 20px;">
<h3><%=l(:label_memo_new)%></h3> <h3><%=l(:label_memo_new)%></h3>
<% if User.current.logged? %> <% if User.current.logged? %>
<%= labelled_form_for(@memo, :url => create_memo_forum_path(@forum), :html => {:multipart => true} ) do |f| %> <%= labelled_form_for(@memo, :url => create_memo_forum_path(@forum), :html => {:multipart => true} ) do |f| %>
@ -40,5 +40,4 @@
:onclick => 'showAndScrollTo("add-memo", "memo_subject"); return false;' if User.current.logged? %> :onclick => 'showAndScrollTo("add-memo", "memo_subject"); return false;' if User.current.logged? %>
</span> </span>
<%= render :partial => 'forums/show_topics', :locals => {:memos => @memos} %> <%= render :partial => 'forums/show_topics', :locals => {:memos => @memos} %>

View File

@ -1936,7 +1936,7 @@ zh:
label_first_page_create_fail: 首页定制失败 label_first_page_create_fail: 首页定制失败
label_forum_edit: 编辑讨论区 label_forum_edit: 编辑讨论区
label_memo_create: 发布 label_memo_create: 发布
label_memo_new: 新建主题 label_memo_new: 新建帖子
label_memo_edit: 修改主题 label_memo_edit: 修改主题
label_memo_new_from_forum: 发布帖子 label_memo_new_from_forum: 发布帖子
label_forum: 公共贴吧 label_forum: 公共贴吧