修改contUrl和picUrl业务的keywords支持多个关键词
common.js中tagInput相关的name属性取值将.去掉 暂时修改音视频类配置下发是的cfgType为maat对应的tableName
This commit is contained in:
@@ -203,11 +203,11 @@ $(function(){
|
||||
var tagsInputSettings="#tags";
|
||||
$("input[name$='cfgKeywords']").each(function(){
|
||||
var tagsId = $(this).attr("id");
|
||||
var objNamePrefix = $(this).attr("name").split(".cfgKeywords")[0];
|
||||
var objNamePrefix = $(this).attr("name").split("cfgKeywords")[0];
|
||||
var isTags = $(this).hasClass("tags");//有tags样式的关键字输入框才需处理
|
||||
if(typeof(tagsId)!=='undefined' && tagsId.indexOf("tags_")!=-1 && isTags){
|
||||
//表单中如果有关键字内容可能输入多个关键字的情况,根据输入关键字个数确定表达式选中情况,不允许手动选中
|
||||
$("input:radio[name='"+objNamePrefix+".exprType']").attr("disabled",true);
|
||||
$("input:radio[name='"+objNamePrefix+"exprType']").attr("disabled",true);
|
||||
tagsInputSettings = tagsInputSettings+",#"+tagsId;
|
||||
}
|
||||
|
||||
@@ -217,7 +217,7 @@ $(function(){
|
||||
defaultText:'please input keywords',
|
||||
onAddTag:function(tag,size){
|
||||
//var keywordValue = "";
|
||||
var objNamePrefix = $(this).attr("name").split(".cfgKeywords")[0];
|
||||
var objNamePrefix = $(this).attr("name").split("cfgKeywords")[0];
|
||||
/*$("span[class='tag']").each(function(){
|
||||
keywordValue = keywordValue+"***iie***"+$(this).find("span").text().trim();
|
||||
});
|
||||
@@ -226,7 +226,7 @@ $(function(){
|
||||
},
|
||||
onRemoveTag:function(tag,size){
|
||||
//var keywordValue = "";
|
||||
var objNamePrefix = $(this).attr("name").split(".cfgKeywords")[0];
|
||||
var objNamePrefix = $(this).attr("name").split("cfgKeywords")[0];
|
||||
/*$("span[class='tag']").each(function(){
|
||||
keywordValue = keywordValue+"***iie***"+$(this).find("span").text().trim();
|
||||
});
|
||||
@@ -541,9 +541,9 @@ function isLicit(str,regStr) {//判断是否为合格字符 //s 包括空格回
|
||||
}
|
||||
function exprTypeChecked(objNamePrefix,size){
|
||||
if(size>1) {
|
||||
$("input:radio[name='"+objNamePrefix+".exprType'][value=1]").prop("checked",true); //选中是
|
||||
$("input:radio[name='"+objNamePrefix+"exprType'][value=1]").prop("checked",true); //选中是
|
||||
}else {
|
||||
$("input:radio[name='"+objNamePrefix+".exprType'][value=0]").prop("checked",true); //选中否
|
||||
$("input:radio[name='"+objNamePrefix+"exprType'][value=0]").prop("checked",true); //选中否
|
||||
}
|
||||
}
|
||||
function validateDataIsLicit(){
|
||||
|
||||
Reference in New Issue
Block a user