里程碑详情局部刷新
This commit is contained in:
parent
a741bf70fb
commit
4df7e41515
|
@ -206,10 +206,11 @@ class VersionsController < ApplicationController
|
|||
@is_setting = params[:is_setting]
|
||||
@is_create = params[:is_create]
|
||||
@is_index = params[:is_index]
|
||||
@flag = params[:flag]
|
||||
|
||||
if request.put? && params[:version]
|
||||
# 处理里程碑里面的更新
|
||||
if params[:flag].to_i == 1
|
||||
if @flag.to_i == 1
|
||||
@version.update_attribute(:status, params[:status])
|
||||
if @version.save
|
||||
respond_to do |format|
|
||||
|
|
|
@ -1,2 +1,5 @@
|
|||
$("#pro_st_tbc_04").html('<%= escape_javascript( render :partial => 'projects/settings/new_versions') %>');
|
||||
<% if @flag %>
|
||||
$("#version_status_con_id").html('<%= escape_javascript( render :partial => 'versions/type_ico') %>');
|
||||
<% end %>
|
||||
|
||||
|
|
Loading…
Reference in New Issue