domain和url域新增时增加警告提示信息【后期需在审核时也增加此警告】。
保护名单信息杨威提供后,再进行完善
(cherry picked from commit ea82be590e)
This commit is contained in:
@@ -1,4 +1,11 @@
|
||||
$(function(){
|
||||
var protectedList = [".com"];
|
||||
$(".domainCheck").each(function(){
|
||||
$(this).on("blur",function(){
|
||||
protectedListWarn(this,$(this).val(),protectedList);
|
||||
});
|
||||
protectedListWarn(this,$(this).val(),protectedList);
|
||||
});
|
||||
// var leff =$("span[class~='le-ca-fo']").attr("data-original-title")
|
||||
// getConfigSyncStatus();
|
||||
$("#contentTable").not(".logTb").find("tbody tr").each(function(i){
|
||||
@@ -429,6 +436,9 @@ $(function(){
|
||||
});
|
||||
$(this).prev("input[name$='cfgKeywords']").val(keywordValue);*/
|
||||
exprTypeChecked(objNamePrefix,size,options);
|
||||
if($(this).hasClass("urlCheck")){
|
||||
protectedListWarn($("#"+$(this).attr("id")+"_tagsinput"),$(this).val(),protectedList);
|
||||
}
|
||||
},
|
||||
onRemoveTag:function(tag,size){
|
||||
$(this).parent(".col-md-6").next("div").html("");
|
||||
@@ -439,6 +449,9 @@ $(function(){
|
||||
});
|
||||
$(this).prev("input[name$='cfgKeywords']").val(keywordValue);*/
|
||||
exprTypeChecked(objNamePrefix,size,options);
|
||||
if($(this).hasClass("urlCheck")){
|
||||
protectedListWarn($("#"+$(this).attr("id")+"_tagsinput"),$(this).val(),protectedList);
|
||||
}
|
||||
}
|
||||
});
|
||||
$(".tagsinput").popover({
|
||||
@@ -1705,3 +1718,14 @@ function addPrintTableCss(rowValue,cellValue,tableIdValue,cssName){
|
||||
}
|
||||
}
|
||||
}
|
||||
/**保护名单提醒**/
|
||||
function protectedListWarn(obj,value,protectedList){
|
||||
$(obj).next(".fa-warning").remove();
|
||||
if(value !=null){
|
||||
if(protectedList.indexOf(value) >= 0){
|
||||
//$(obj).after("<i class='fa fa-warning font-red-flamingo'>"+$.validator.messages.protect_warn+"</i>");
|
||||
$.jBox.info($.validator.messages.protect_warn,$.validator.messages.info);
|
||||
$('.jbox-body .jbox-icon').css('top','55px');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user