#1280 公共贴吧--新建帖子,置所有条件为空,点击发布按钮,却返回帖子列表及其他相关问题。修改:发布失败后停留在发帖页面
This commit is contained in:
parent
cc73b5e9d7
commit
086d99fe2a
|
@ -1,5 +1,5 @@
|
|||
<!-- 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>
|
||||
<% if User.current.logged? %>
|
||||
<%= 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? %>
|
||||
</span>
|
||||
|
||||
|
||||
<%= render :partial => 'forums/show_topics', :locals => {:memos => @memos} %>
|
||||
|
|
|
@ -1936,7 +1936,7 @@ zh:
|
|||
label_first_page_create_fail: 首页定制失败
|
||||
label_forum_edit: 编辑讨论区
|
||||
label_memo_create: 发布
|
||||
label_memo_new: 新建主题
|
||||
label_memo_new: 新建帖子
|
||||
label_memo_edit: 修改主题
|
||||
label_memo_new_from_forum: 发布帖子
|
||||
label_forum: 公共贴吧
|
||||
|
@ -2128,4 +2128,4 @@ zh:
|
|||
lable_hot_course: 活跃课程
|
||||
lable_hot_projects: 热门项目
|
||||
lable_user_active: 用户动态
|
||||
lable_bar_active: 贴吧动态
|
||||
lable_bar_active: 贴吧动态
|
||||
|
|
Loading…
Reference in New Issue