Commit e6f3f79d by xueli.xue

WebIDE交互优化

parent 54dc2337
...@@ -39,29 +39,28 @@ $(function() { ...@@ -39,29 +39,28 @@ $(function() {
return; return;
} }
ComConfirm.show("是否执行保存操作?", function(){
$.ajax({ $.ajax({
type : 'POST', type : 'POST',
url : base_url + '/jobcode/save', url : base_url + '/jobcode/save',
data : { data : {
'id' : id, 'id' : id,
'glueSource' : glueSource, 'glueSource' : glueSource,
'glueRemark' : glueRemark 'glueRemark' : glueRemark
}, },
dataType : "json", dataType : "json",
success : function(data){ success : function(data){
if (data.code == 200) { if (data.code == 200) {
ComAlert.show(1, '保存成功', function(){ ComAlert.show(1, '保存成功', function(){
//$(window).unbind('beforeunload'); //$(window).unbind('beforeunload');
window.location.reload(); window.location.reload();
}); });
} else { } else {
ComAlert.show(2, data.msg); ComAlert.show(2, data.msg);
}
} }
}); }
}); });
}); });
// before upload // before upload
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment