|
@@ -227,28 +227,15 @@ $(function() {
|
227
|
227
|
dataType : "json",
|
228
|
228
|
success : function(data){
|
229
|
229
|
if (data.code == 200) {
|
230
|
|
-
|
231
|
|
- layer.open({
|
232
|
|
- title: I18n.system_tips,
|
233
|
|
- btn: [ I18n.system_ok ],
|
234
|
|
- content: typeName + I18n.system_success ,
|
235
|
|
- icon: '1',
|
236
|
|
- end: function(layero, index){
|
237
|
|
- if (needFresh) {
|
238
|
|
- //window.location.reload();
|
239
|
|
- jobTable.fnDraw(false);
|
240
|
|
- }
|
241
|
|
- }
|
242
|
|
- });
|
|
230
|
+ layer.msg( typeName + I18n.system_success );
|
|
231
|
+ if (needFresh) {
|
|
232
|
+ //window.location.reload();
|
|
233
|
+ jobTable.fnDraw(false);
|
|
234
|
+ }
|
243
|
235
|
} else {
|
244
|
|
- layer.open({
|
245
|
|
- title: I18n.system_tips,
|
246
|
|
- btn: [ I18n.system_ok ],
|
247
|
|
- content: (data.msg || typeName + I18n.system_fail ),
|
248
|
|
- icon: '2'
|
249
|
|
- });
|
|
236
|
+ layer.msg( data.msg || typeName + I18n.system_fail );
|
250
|
237
|
}
|
251
|
|
- },
|
|
238
|
+ }
|
252
|
239
|
});
|
253
|
240
|
});
|
254
|
241
|
});
|
|
@@ -276,19 +263,9 @@ $(function() {
|
276
|
263
|
if (data.code == 200) {
|
277
|
264
|
$('#jobTriggerModal').modal('hide');
|
278
|
265
|
|
279
|
|
- layer.open({
|
280
|
|
- title: I18n.system_tips,
|
281
|
|
- btn: [ I18n.system_ok ],
|
282
|
|
- content: I18n.jobinfo_opt_run + I18n.system_success ,
|
283
|
|
- icon: '1'
|
284
|
|
- });
|
|
266
|
+ layer.msg( I18n.jobinfo_opt_run + I18n.system_success );
|
285
|
267
|
} else {
|
286
|
|
- layer.open({
|
287
|
|
- title: I18n.system_tips,
|
288
|
|
- btn: [ I18n.system_ok ],
|
289
|
|
- content: (data.msg || I18n.jobinfo_opt_run + I18n.system_fail ),
|
290
|
|
- icon: '2'
|
291
|
|
- });
|
|
268
|
+ layer.msg( data.msg || I18n.jobinfo_opt_run + I18n.system_fail );
|
292
|
269
|
}
|
293
|
270
|
}
|
294
|
271
|
});
|