|
@@ -286,11 +286,13 @@ $(function() {
|
286
|
286
|
submitHandler : function(form) {
|
287
|
287
|
$.post(base_url + "/jobinfo/add", $("#addModal .form").serialize(), function(data, status) {
|
288
|
288
|
if (data.code == "200") {
|
289
|
|
- ComAlert.show(1, "新增任务成功", function(){
|
290
|
|
- //window.location.reload();
|
291
|
|
- $('#addModal').modal('hide');
|
292
|
|
- jobTable.fnDraw();
|
293
|
|
- });
|
|
289
|
+ $('#addModal').modal('hide');
|
|
290
|
+ setTimeout(function () {
|
|
291
|
+ ComAlert.show(1, "新增任务成功", function(){
|
|
292
|
+ jobTable.fnDraw();
|
|
293
|
+ //window.location.reload();
|
|
294
|
+ });
|
|
295
|
+ }, 315);
|
294
|
296
|
} else {
|
295
|
297
|
if (data.msg) {
|
296
|
298
|
ComAlert.show(2, data.msg);
|