1.修复日志详情弹框转义,换行2.加载遮罩文字onloading
This commit is contained in:
@@ -16,9 +16,18 @@ $(function(){
|
||||
var text="";
|
||||
if($(element).find(".tooltips").length > 0){
|
||||
text=$(element).find(".tooltips").attr("data-original-title").trim();
|
||||
|
||||
}else{
|
||||
text=$(element).text().trim()
|
||||
}
|
||||
//增加换行
|
||||
var count = Math.floor(text.length/34);
|
||||
for(var i=1;i<=count;i++){
|
||||
text=text.substring(0,i*34-1)+"\n"+text.substring(i*34-1);
|
||||
}
|
||||
//特殊字符转义
|
||||
text=text.replace(/[<>&"]/g,function(c){return {'<':'<','>':'>','&':'&','"':'"'}[c];});
|
||||
|
||||
html+="<div class='row col-md-12'>";
|
||||
html+="<div class='col-md-4'><label>"+$(".table tr th").eq(index).text().trim()+":</label></div>";
|
||||
html+="<div class='col-md-6'><label>"+text+"</label></div>";
|
||||
@@ -398,7 +407,7 @@ $(function(){
|
||||
}
|
||||
},
|
||||
submitHandler: function(form){
|
||||
loading('<spring:message code="onloading"/>');
|
||||
loading('onloading');
|
||||
form.submit();
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user