修改添加应用不能刷新的问题
This commit is contained in:
parent
7adb1f8a60
commit
a52e057d94
|
@ -300,13 +300,13 @@ class ContestsController < ApplicationController
|
||||||
contest_message = params[:contest_for_save][:contest_message]
|
contest_message = params[:contest_for_save][:contest_message]
|
||||||
if ContestingSoftapplication.where("softapplication_id = ? and contest_id = ?", softapplication.id, @contest.id).size == 0
|
if ContestingSoftapplication.where("softapplication_id = ? and contest_id = ?", softapplication.id, @contest.id).size == 0
|
||||||
if ContestingSoftapplication.create_softapplication_contesting(@contest.id, softapplication.id, contest_message)
|
if ContestingSoftapplication.create_softapplication_contesting(@contest.id, softapplication.id, contest_message)
|
||||||
flash.now[:notice] = l(:label_bidding_contest_succeed)
|
flash.now[:notice] = l(:label_release_add_contest_succeed)
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
flash.now[:error] = l(:label_bidding_fail)
|
flash.now[:error] = l(:label_add_contest_succeed_fail)
|
||||||
end
|
end
|
||||||
|
|
||||||
@contesting_softapplication = @contest.contesting_softapplications
|
@contesting_softapplication = paginateHelper @contest.contesting_softapplications
|
||||||
|
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
|
|
||||||
|
|
|
@ -1847,5 +1847,8 @@ zh:
|
||||||
label_tags_contest: 竞赛标签
|
label_tags_contest: 竞赛标签
|
||||||
label_tags_contest: 竞赛名称
|
label_tags_contest: 竞赛名称
|
||||||
label_tags_contest_description: 竞赛描述
|
label_tags_contest_description: 竞赛描述
|
||||||
|
label_release_add_contest_succeed: 该应用发布并添加成功.
|
||||||
|
label_add_contest_succeed_fail: 添加失败,该应用已参赛.
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue