...
|
...
|
@@ -278,7 +278,6 @@ |
|
|
</html>
|
|
|
<script type="text/javascript">
|
|
|
var global_all_clusters=${clusters};
|
|
|
var page_current_project_support_deploy_type="";
|
|
|
jQuery(document).ready(function () {
|
|
|
$("#projectDeployType").select2({
|
|
|
width:"110px"
|
...
|
...
|
@@ -296,7 +295,6 @@ |
|
|
$("#projectDeployType").prop("disabled", true);
|
|
|
|
|
|
if("${releaseWorkJob_id}".length>0){
|
|
|
page_current_project_support_deploy_type = '${releaseWorkJob_projectDeployType}';
|
|
|
$('#projectDeployType').val(['${releaseWorkJob_projectDeployType}']).trigger('change');
|
|
|
}
|
|
|
|
...
|
...
|
@@ -519,8 +517,6 @@ |
|
|
}else{
|
|
|
supportDeployType="";
|
|
|
}
|
|
|
page_current_project_support_deploy_type = supportDeployType;
|
|
|
|
|
|
var htmlContent="";
|
|
|
for(var i=0;i<cluster_online.length;i++){
|
|
|
var key=cluster_online[i];
|
...
|
...
|
@@ -555,10 +551,10 @@ |
|
|
//重置--发布方式
|
|
|
var array_deploy_type_value="";
|
|
|
$("#projectDeployType").prop("disabled", true);//下拉不可用
|
|
|
if(page_current_project_support_deploy_type.length<=0){
|
|
|
if(supportDeployType.length<=0){
|
|
|
array_deploy_type_value="git";
|
|
|
}else if(page_current_project_support_deploy_type.split(",").length==1){
|
|
|
array_deploy_type_value=page_current_project_support_deploy_type;
|
|
|
}else if(supportDeployType.split(",").length==1){
|
|
|
array_deploy_type_value=supportDeployType;
|
|
|
}else{
|
|
|
//下拉可用
|
|
|
$("#projectDeployType").prop("disabled", false);
|
...
|
...
|
|