Authored by qinchao

去掉nginx同步选项

... ... @@ -89,11 +89,11 @@
<label class="col-sm-1 control-label">任务选择</label>
<div class="col-sm-8">
<div class="rdio rdio-default">
<%-- <div class="rdio rdio-default">
<input type="radio" name="operate" id="nginx" value="nginx_val" checked="checked"
onclick="operateChange(1)"/>
<label for="nginx">nginx 同步</label>
</div>
</div>--%>
<div class="rdio rdio-default">
<input type="radio" name="operate" value="dns_nginx_val" id="dns_nginx"
... ... @@ -210,6 +210,9 @@
$(function () {
$("#aws-redio-div").hide();
$("#gray-redio-div").hide();
//第一个checkbox触发click事件
$('input[name="operate"]').eq(0).click();
});
var type = 1;
... ... @@ -248,39 +251,45 @@
}
function disableSelect() {
var select = document.getElementById("nginx");
select.disabled = true;
var select;
select = document.getElementById("dns_nginx");
select.disabled = true;
//select = document.getElementById("h5_nginx");
//select.disabled = true;
// select = document.getElementById("all");
// select.disabled = true;
select = document.getElementById("qcloud");
select.disabled = true;
select = document.getElementById("aws");
select.disabled = true;
select = document.getElementById("gray");
select.disabled = true;
//select = document.getElementById("nginx");
//select.disabled = true;
//select = document.getElementById("h5_nginx");
//select.disabled = true;
// select = document.getElementById("all");
// select.disabled = true;
var btn = document.getElementById("exe_btn");
btn.disabled = true;
}
function ableSelect() {
var select = document.getElementById("nginx");
select.disabled = false;
var select;
select = document.getElementById("dns_nginx");
select.disabled = false;
//select = document.getElementById("h5_nginx");
// select.disabled = false;
// select = document.getElementById("all");
// select.disabled = false;
select = document.getElementById("qcloud");
select.disabled = false;
select = document.getElementById("aws");
select.disabled = false;
select = document.getElementById("gray");
select.disabled = false;
//select = document.getElementById("nginx");
//select.disabled = false;
//select = document.getElementById("h5_nginx");
// select.disabled = false;
// select = document.getElementById("all");
// select.disabled = false;
var btn = document.getElementById("exe_btn");
btn.disabled = false;
}
... ...