Browse Source

修复一处因bootstrap不支持模态框重叠而导致的样式错乱的问题, 在任务编辑时会出现该问题;

xueli.xue 9 years ago
parent
commit
a92b9ec15a
1 changed files with 7 additions and 5 deletions
  1. 7 5
      xxl-job-admin/src/main/webapp/static/js/jobinfo.index.1.js

+ 7 - 5
xxl-job-admin/src/main/webapp/static/js/jobinfo.index.1.js

@@ -423,11 +423,13 @@ $(function() {
 			// post
     		$.post(base_url + "/jobinfo/reschedule", $("#updateModal .form").serialize(), function(data, status) {
     			if (data.code == "200") {
-    				ComAlert.show(1, "更新成功", function(){
-    					//window.location.reload();
-						$('#updateModal').modal('hide');
-						jobTable.fnDraw();
-    				});
+					$('#updateModal').modal('hide');
+					setTimeout(function () {
+						ComAlert.show(1, "更新成功", function(){
+							//window.location.reload();
+							jobTable.fnDraw();
+						});
+					}, 315);
     			} else {
     				if (data.msg) {
     					ComAlert.show(2, data.msg);