里程碑详情局部刷新

This commit is contained in:
huang 2016-10-28 09:20:04 +08:00
parent a741bf70fb
commit 4df7e41515
2 changed files with 5 additions and 1 deletions

View File

@ -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|

View File

@ -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 %>