update document
This commit is contained in:
parent
7a371191f3
commit
c199fd8557
|
@ -318,7 +318,7 @@ $(function() {
|
||||||
// add
|
// add
|
||||||
$(".add").click(function(){
|
$(".add").click(function(){
|
||||||
|
|
||||||
// init
|
// init-cronGen
|
||||||
$("#addModal .form input[name='jobCron']").cronGen({});
|
$("#addModal .form input[name='jobCron']").cronGen({});
|
||||||
|
|
||||||
$('#addModal').modal({backdrop: false, keyboard: false}).modal('show');
|
$('#addModal').modal({backdrop: false, keyboard: false}).modal('show');
|
||||||
|
@ -412,13 +412,14 @@ $(function() {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
$("#addModal").on('hide.bs.modal', function () {
|
$("#addModal").on('hide.bs.modal', function () {
|
||||||
$("#addModal .form")[0].reset();
|
|
||||||
addModalValidate.resetForm();
|
addModalValidate.resetForm();
|
||||||
// 清理 cronGen
|
$("#addModal .form")[0].reset();
|
||||||
$("input[name=jobCron]").show().siblings().remove();
|
|
||||||
$("#addModal .form .form-group").removeClass("has-error");
|
$("#addModal .form .form-group").removeClass("has-error");
|
||||||
$(".remote_panel").show(); // remote
|
$(".remote_panel").show(); // remote
|
||||||
|
|
||||||
|
// remove-cronGen
|
||||||
|
$("input[name=jobCron]").show().siblings().remove();
|
||||||
|
|
||||||
$("#addModal .form input[name='executorHandler']").removeAttr("readonly");
|
$("#addModal .form input[name='executorHandler']").removeAttr("readonly");
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -480,7 +481,7 @@ $(function() {
|
||||||
|
|
||||||
$("#updateModal .form select[name=glueType]").change();
|
$("#updateModal .form select[name=glueType]").change();
|
||||||
|
|
||||||
// init
|
// init-cronGen
|
||||||
$("#updateModal .form input[name='jobCron']").cronGen({});
|
$("#updateModal .form input[name='jobCron']").cronGen({});
|
||||||
|
|
||||||
// show
|
// show
|
||||||
|
@ -576,8 +577,11 @@ $(function() {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
$("#updateModal").on('hide.bs.modal', function () {
|
$("#updateModal").on('hide.bs.modal', function () {
|
||||||
|
updateModalValidate.resetForm();
|
||||||
$("#updateModal .form")[0].reset();
|
$("#updateModal .form")[0].reset();
|
||||||
// 清理 cronGen
|
$("#updateModal .form .form-group").removeClass("has-error");
|
||||||
|
|
||||||
|
// remove-cronGen
|
||||||
$("input[name=jobCron]").show().siblings().remove();
|
$("input[name=jobCron]").show().siblings().remove();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue