diff --git a/src/main/webapp/static/global/scripts/common.js b/src/main/webapp/static/global/scripts/common.js index 75779c4c1..71f3f84a2 100644 --- a/src/main/webapp/static/global/scripts/common.js +++ b/src/main/webapp/static/global/scripts/common.js @@ -48,7 +48,10 @@ $(function(){ var text=$(this).text().trim().substring(0,25)+"..."; //重新为td赋值; $(this).text(text); - } + } else{ + var strTitle = $(this).text().trim().replace(/[\r\n]/g,"").replace(/\s+/g, " "); + $(this).attr("title",strTitle); + } }); $("input[name$='isCaseSenstive']").on("change",function(){ @@ -72,6 +75,10 @@ $(function(){ }else{ 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];});