$(function(){
// var leff =$("span[class~='le-ca-fo']").attr("data-original-title")
// getConfigSyncStatus();
$("#contentTable").not(".logTb").find("tbody tr").each(function(i){
if($(this).find("input[type='checkbox']").attr("value")==3){
var ids = $(this).find("input").attr("id");
var resetLeff =$(this).find("span[class~='le-ca-fo']");
var indexTableName = $("#contentTable tbody tr td span[class~='le-ca-fo']").attr("indexTable");
var pathName=window.document.location.pathname.substring(0,window.document.location.pathname.lastIndexOf("/nis")+4);
if(ids!=null&&indexTableName!=null){
$.ajax({
type:'post',
url:pathName+'/basics/serviceDictInfo/requestCancleInfoNumber',
data:{"ids":ids,"indexTable":indexTableName},
dataType:'json',
success:function(data){//处理返回结果
//根据表名跟cfgid获取 requestNumber;
if(data.requestTitle!=null){
resetLeff.attr("data-original-title",data.requestTitle)
}else{
resetLeff.attr("data-original-title","")
}
}
});
}
}
})
//增加描述新增时的文字长度限制
$("form input[name='cfgDesc']").attr("maxlength","128");
$("form input[name='cfgDesc']").addClass("required");
$("form input[name='cfgDesc']").parent().prev(".control-label").html("*"+$("form input[name='cfgDesc']").parent().prev(".control-label").text());
$("form input[name='cfgDesc']").parent().append("
";
htmls = htmls+data;
subTab=subTab+htmls;
//pzhtml=subTab.replace('col-md-4','col-md-8');
var reg = new RegExp( 'col-md-4' , "g" )
pzhtml = subTab.replace( reg , 'col-md-6' );
}
});
}
var html = "
";
$(this).parents("tr").find("td").each(function(index,element){
if(index >0){
var text="";
if($(element).find(".tooltips").length > 0){
text=$(element).find(".tooltips").attr("data-original-title").trim();
}else{
text=$(element).text().trim()
}
if(!$(element).find(".tooltips").length>0&&typeof($(element).attr("title"))!="undefined"&&$(element).attr("title")!=null&&$(element).attr("title").length > 0){
// text=$(element).attr("titleHidden").trim();
// if(text==null&&text==''){
text=$(element).attr("title").trim();
// }
}
// text=text.replace(/[\r\n]/g,"");// 去掉换行
//特殊字符转义
text=text.replace(/[<>&"]/g,function(c){return {'<':'<','>':'>','&':'&','"':'"'}[c];});
html+="
";
html+="
";
html+="
";
html+="
";
}
})
if(pzhtml!=null && pzhtml!=""){
html+="
";
html+="
"
html+=pzhtml;
html +='";
html+="
"
}
html +="
";
top.$.jBox(html,{height:450,width:750,title:"
Log Info",showIcon:false,opacity:0.5});
/*html +="
";
top.$.jBox(html,{height:450,width:600,title:"