title 去掉显示时的空格跟换行,ddos配置域表,日志菜单更改sql提交
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
#修改ddos动作为回流,配置表为NTC_DDOS_PROTECT_TARGET_IP
|
||||
UPDATE function_region_dict SET config_region_value='NTC_DDOS_PROTECT_TARGET_IP' WHERE dict_id=74;
|
||||
UPDATE function_service_dict SET `action`=96 , action_code='loop' WHERE dict_id=82;
|
||||
4
src/main/resources/sql/20181112/update_sys_menu.sql
Normal file
4
src/main/resources/sql/20181112/update_sys_menu.sql
Normal file
@@ -0,0 +1,4 @@
|
||||
#修改日志ddos 为一个菜单
|
||||
UPDATE sys_menu SET href='/log/ntc/ntcDdosLogs/list' WHERE id=1138;
|
||||
UPDATE sys_menu SET is_show=0 WHERE id=1139;
|
||||
|
||||
@@ -346,7 +346,7 @@
|
||||
<th class="sort-column a.action"><spring:message code="block_type"/></th>
|
||||
<th><spring:message code="ignore_query_string"/></th>
|
||||
<th><spring:message code="include_cookie"/></th>
|
||||
<th><spring:message code="no_ revalidate"/></th>
|
||||
<th><spring:message code="no_revalidate"/></th>
|
||||
<th><spring:message code="cache_dyn_url"/></th>
|
||||
<th><spring:message code="cache_cookied_cont"/></th>
|
||||
<th><spring:message code="ignore_req_nocache"/></th>
|
||||
|
||||
@@ -37,11 +37,11 @@ $(function(){
|
||||
//获取td当前对象的文本,如果长度大于25;
|
||||
if($(this).text().trim().length>28){
|
||||
//给td设置title属性,并且设置td的完整值.给title属性.
|
||||
var strTitle = $(this).text().trim();
|
||||
var strTitle = $(this).text().trim().replace(/[\r\n]/g,"").replace(/\s+/g, "");
|
||||
//解决火狐title不能自动换行
|
||||
var count = Math.floor(strTitle.length/64);
|
||||
var count = Math.floor(strTitle.length/62);
|
||||
for(var i=1;i<=count;i++){
|
||||
strTitle=strTitle.substring(0,i*64-1)+"\n"+strTitle.substring(i*64-1);
|
||||
strTitle=strTitle.substring(0,i*62-1)+"\n"+strTitle.substring(i*62-1);
|
||||
}
|
||||
$(this).attr("title",strTitle);
|
||||
//获取td的值,进行截取。赋值给text变量保存.
|
||||
|
||||
Reference in New Issue
Block a user