修改日志详情列显示不全
This commit is contained in:
@@ -48,6 +48,9 @@ $(function(){
|
|||||||
var text=$(this).text().trim().substring(0,25)+"...";
|
var text=$(this).text().trim().substring(0,25)+"...";
|
||||||
//重新为td赋值;
|
//重新为td赋值;
|
||||||
$(this).text(text);
|
$(this).text(text);
|
||||||
|
} else{
|
||||||
|
var strTitle = $(this).text().trim().replace(/[\r\n]/g,"").replace(/\s+/g, " ");
|
||||||
|
$(this).attr("title",strTitle);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -72,6 +75,10 @@ $(function(){
|
|||||||
}else{
|
}else{
|
||||||
text=$(element).text().trim()
|
text=$(element).text().trim()
|
||||||
}
|
}
|
||||||
|
if(typeof($(element).attr("title"))!="undefined"&&$(element).attr("title")!=null&&$(element).attr("title").length > 0){
|
||||||
|
text=$(element).attr("title").trim();
|
||||||
|
|
||||||
|
}
|
||||||
//特殊字符转义
|
//特殊字符转义
|
||||||
text=text.replace(/[<>&"]/g,function(c){return {'<':'<','>':'>','&':'&','"':'"'}[c];});
|
text=text.replace(/[<>&"]/g,function(c){return {'<':'<','>':'>','&':'&','"':'"'}[c];});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user