修正导入操作框错误提示信息及不显示bug.
This commit is contained in:
@@ -161,17 +161,24 @@ var importCfg=function(){
|
||||
}
|
||||
|
||||
if(fileName==""){
|
||||
$("span",$error).html($("#importTip").val());
|
||||
$("span",$error).html($("#noneFileTip").val());
|
||||
$error.removeClass("hide");
|
||||
$error.addClass("show");
|
||||
return false;
|
||||
|
||||
}else if(fileName.lastIndexOf("\.")==-1/*||fileName.substring(fileName.lastIndexOf("\.")+1).toLowerCase()!='xls'*/ ||fileName.substring(fileName.lastIndexOf("\.")+1).toLowerCase()!='xlsx'){
|
||||
$("span",$error).html($("#importTip").val());
|
||||
$("span",$error).html($("#fileVersionErrorTip").val());
|
||||
$error.removeClass("hide");
|
||||
$error.addClass("show");
|
||||
return false;
|
||||
}
|
||||
$("#import_modal").modal('hide');//导入文件隐藏
|
||||
$("#importForm1").submit();
|
||||
}
|
||||
|
||||
// 代替data-dismiss=""属性(关闭错误信息)
|
||||
var closeTip = function(){
|
||||
var $error = $('.alert-error', $("#importForm1"));
|
||||
$error.removeClass("show");
|
||||
$error.addClass("hide");
|
||||
}
|
||||
Reference in New Issue
Block a user