审核并下发按钮保存

This commit is contained in:
段冬梅
2019-04-09 09:30:45 +08:00
parent 7af6c7c203
commit 4ce7ebef05

View File

@@ -438,43 +438,48 @@ $(function(){
'delimiter':'***and***',//特殊字符串分隔与表达式的多关键词 'delimiter':'***and***',//特殊字符串分隔与表达式的多关键词
maxCount:4, maxCount:4,
onAddTag:function(tag,size){ onAddTag:function(tag,size){
var reg = new RegExp(/\t|\r|\n/); var reg = new RegExp(/\t|\r|\n/);
if (tag.match(reg)) { if (tag.match(reg)) {
$(this).parent(".col-md-6").next("div").html("<label class='error'>"+$.validator.messages.hasInvisibleChar.replace("{0}","'"+tag+"'")+"</label>"); $(this).parent(".col-md-6").next("div").html("<label class='error'>"+$.validator.messages.hasInvisibleChar.replace("{0}","'"+tag+"'")+"</label>");
}else{ }else{
$(this).parent(".col-md-6").next("div").html(""); $(this).parent(".col-md-6").next("div").html("");
} }
//var keywordValue = ""; //var keywordValue = "";
var objNamePrefix = $(this).attr("name").split("cfgKeywords")[0]; var objNamePrefix = $(this).attr("name").split("cfgKeywords")[0];
/*$("span[class='tag']").each(function(){ /*$("span[class='tag']").each(function(){
keywordValue = keywordValue+"***iie***"+$(this).find("span").text().trim();
});
$(this).prev("input[name$='cfgKeywords']").val(keywordValue);*/
exprTypeChecked(objNamePrefix,size,options);
var tagObj = $(this);
for(var key in protectionData){
if(tagObj.hasClass(key)){
protectedListWarn(tagObj,key);
}
}
},
onRemoveTag:function(tag,size){
$(this).parent(".col-md-6").next("div").html("");
//var keywordValue = "";
var objNamePrefix = $(this).attr("name").split("cfgKeywords")[0];
/*$("span[class='tag']").each(function(){
keywordValue = keywordValue+"***iie***"+$(this).find("span").text().trim(); keywordValue = keywordValue+"***iie***"+$(this).find("span").text().trim();
}); });
$(this).prev("input[name$='cfgKeywords']").val(keywordValue);*/ $(this).prev("input[name$='cfgKeywords']").val(keywordValue);*/
exprTypeChecked(objNamePrefix,size,options); exprTypeChecked(objNamePrefix,size,options);
if(size == 1){
var tagObj = $(this);
for(var key in protectionData){
if(tagObj.hasClass(key)){
protectedListWarn(tagObj,key);
}
}
}
},
onRemoveTag:function(tag,size){
$(this).parent(".col-md-6").next("div").html("");
//var keywordValue = "";
var objNamePrefix = $(this).attr("name").split("cfgKeywords")[0];
/*$("span[class='tag']").each(function(){
keywordValue = keywordValue+"***iie***"+$(this).find("span").text().trim();
});
$(this).prev("input[name$='cfgKeywords']").val(keywordValue);*/
exprTypeChecked(objNamePrefix,size,options);
var tagObj = $(this); if(size == 1){
for(var key in protectionData){ var tagObj = $(this);
if(tagObj.hasClass(key)){ for(var key in protectionData){
protectedListWarn(tagObj,key); if(tagObj.hasClass(key)){
} protectedListWarn(tagObj,key);
} }
}
}
} }
}); });
$(".tagsinput").popover({ $(".tagsinput").popover({
@@ -587,6 +592,15 @@ $(function(){
window.history.back(); window.history.back();
return false; return false;
}); });
$("#cancel").on("click",function(){
window.history.back();
return false;
});
$("button[id='audit']").on("click",function(){
$("input[name='isValid']").val(1);
$("input[name='isAudit']").val(1);
});
//去掉首尾空格 //去掉首尾空格
$("input,textarea").on("blur",function(){ $("input,textarea").on("blur",function(){
if($(this).attr("type")!="file"){ if($(this).attr("type")!="file"){