|
@@ -8,11 +8,11 @@
|
|
|
})
|
|
|
function doSubmit(obj){//回调函数,在编辑和保存动作时,供openDialog调用提交表单。
|
|
|
if ($("#myfile").val()==null||$("#myfile").val()==""){
|
|
|
- layer.msg("请选择文件",{icon: 5});
|
|
|
+ layer.msg("请选择文件",{icon: 3});
|
|
|
throw SyntaxError;
|
|
|
}
|
|
|
if ($("#inputwrite").val()==null||$("#inputwrite").val()==""){
|
|
|
- layer.msg("请输入项目名称",{icon:5});
|
|
|
+ layer.msg("请输入项目名称",{icon:3});
|
|
|
throw SyntaxError;
|
|
|
}
|
|
|
//获取项目名称
|
|
@@ -25,7 +25,7 @@
|
|
|
data: {"projectName":project_name,"projectId":project_id},
|
|
|
success:function (result) {
|
|
|
if (result.code == 1){
|
|
|
- alert(result.msg);
|
|
|
+ layer.msg(result.msg,{icon:5});
|
|
|
}else {
|
|
|
$("#inputForm").submit();
|
|
|
}
|