提交 1abe154c authored 作者: xuxueli's avatar xuxueli

修复Cron可视化查看数据清空问题;

上级 dd2d7d3c
...@@ -362,6 +362,7 @@ $(function() { ...@@ -362,6 +362,7 @@ $(function() {
$(".add").click(function(){ $(".add").click(function(){
// init-cronGen // init-cronGen
$("#addModal .form input[name='jobCron']").show().siblings().remove();
$("#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');
...@@ -460,9 +461,6 @@ $(function() { ...@@ -460,9 +461,6 @@ $(function() {
$("#addModal .form .form-group").removeClass("has-error"); $("#addModal .form .form-group").removeClass("has-error");
$(".remote_panel").show(); // remote $(".remote_panel").show(); // remote
// remove-cronGen
$("#addModal .form input[name='jobCron']").show().siblings().remove();
$("#addModal .form input[name='executorHandler']").removeAttr("readonly"); $("#addModal .form input[name='executorHandler']").removeAttr("readonly");
}); });
...@@ -525,6 +523,7 @@ $(function() { ...@@ -525,6 +523,7 @@ $(function() {
$("#updateModal .form select[name=glueType]").change(); $("#updateModal .form select[name=glueType]").change();
// init-cronGen // init-cronGen
$("#updateModal .form input[name='jobCron']").show().siblings().remove();
$("#updateModal .form input[name='jobCron']").cronGen({}); $("#updateModal .form input[name='jobCron']").cronGen({});
// show // show
...@@ -623,9 +622,6 @@ $(function() { ...@@ -623,9 +622,6 @@ $(function() {
updateModalValidate.resetForm(); updateModalValidate.resetForm();
$("#updateModal .form")[0].reset(); $("#updateModal .form")[0].reset();
$("#updateModal .form .form-group").removeClass("has-error"); $("#updateModal .form .form-group").removeClass("has-error");
// remove-cronGen
$("#updateModal .form input[name='jobCron']").show().siblings().remove();
}); });
/** /**
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论