modify file type

slove the issue with version page can not show

Change-Id: Ib6bbeef688b9aa30ffba183db5b60cd775bd5e4c
Signed-off-by: Jing Sun <sun.jing22@zte.com.cn>
This commit is contained in:
Jing Sun 2017-03-03 16:35:28 +08:00 committed by Sun Jing22
parent 1016c7da42
commit 901cf05f4a
1 changed files with 5 additions and 5 deletions

View File

@ -67,7 +67,7 @@
return;
var file_paths = document.getElementById("version_file").files;
// 获取前台的版本信息
var params = {
"file_type": $("#file_type").val(),
"file_name": file_paths[0].name,
@ -86,7 +86,7 @@
$(function(){
$("#file_type").change(function(){
if ($("#patch_version").attr('checked') == 'checked'){
// 获取所有系统版本信息
var url = "/dashboard/environment/version/get_appointed_system_versions/";
do_post(url, JSON.stringify({'file_type': $("#file_type").val()}), update_correspond_file_option);
}
@ -107,7 +107,7 @@
$(".form-local-file").addClass("hide");
$(".form-server-file").removeClass("hide");
// 获取服务端文件信息
var params = {
"file_type": $("#file_type").val()
}
@ -119,7 +119,7 @@
$(".version_type").on("click", function(){
if ($("#patch_version").attr('checked') == 'checked') {
$(".form-correspond-file").removeClass("hide");
// 获取所有系统版本信息
var url = "/dashboard/environment/version/get_appointed_system_versions/";
do_post(url, JSON.stringify({'file_type': $("#file_type").val()}), update_correspond_file_option);
}
@ -204,7 +204,7 @@
<input type="radio" id="patch_version" name="version_type" class="version_type" value="patch" >{% trans "Patch version" %}
</label>
</div>
</div>
</div>
<div class="form-group input-sm form-correspond-file hide">
<label class="control-label col-sm-5">{% trans 'Corresponding system version' %}:</label>
<div class="col-sm-2">