Merge pull request #2865 from int2001/bandlistFix
Fix Highlighting of current QRG for Bootstrap5
这个提交包含在:
当前提交
9e356b8065
共有 2 个文件被更改,包括 6 次插入 和 4 次删除
|
|
@ -89,7 +89,7 @@ class Dxcluster_model extends CI_Model {
|
||||||
// CURL Functions
|
// CURL Functions
|
||||||
$ch = curl_init();
|
$ch = curl_init();
|
||||||
curl_setopt($ch, CURLOPT_URL, $dxcache_url);
|
curl_setopt($ch, CURLOPT_URL, $dxcache_url);
|
||||||
curl_setopt($ch, CURLOPT_USERAGENT, 'Cloudlog '.$this->optionslib->get_option('version').'DXLookup by QRG');
|
curl_setopt($ch, CURLOPT_USERAGENT, 'Cloudlog '.$this->optionslib->get_option('version').' DXLookup by QRG');
|
||||||
curl_setopt($ch, CURLOPT_HEADER, false);
|
curl_setopt($ch, CURLOPT_HEADER, false);
|
||||||
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
||||||
$jsonraw = curl_exec($ch);
|
$jsonraw = curl_exec($ch);
|
||||||
|
|
|
||||||
|
|
@ -66,7 +66,7 @@ $(function() {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
if (!update) { // Sth. Fresh? So highlight
|
if (!update) { // Sth. Fresh? So highlight
|
||||||
table.rows.add(data).draw().nodes().to$().addClass("fresh bg-info");
|
table.rows.add(data).draw().nodes().to$().addClass("fresh table-info");
|
||||||
} else {
|
} else {
|
||||||
table.rows.add(data).draw();
|
table.rows.add(data).draw();
|
||||||
}
|
}
|
||||||
|
|
@ -94,9 +94,11 @@ $(function() {
|
||||||
if (distance<=20) {
|
if (distance<=20) {
|
||||||
distance++;
|
distance++;
|
||||||
alpha=(.5/distance);
|
alpha=(.5/distance);
|
||||||
this.nodes().to$().css('background-color', 'rgba(0,0,255,' + alpha + ')');
|
this.nodes().to$().css('--bs-table-bg', 'rgba(0,0,255,' + alpha + ')');
|
||||||
|
this.nodes().to$().css('--bs-table-accent-bg', 'rgba(0,0,255,' + alpha + ')');
|
||||||
} else {
|
} else {
|
||||||
this.nodes().to$().css('background-color', '');
|
this.nodes().to$().css('--bs-table-bg', '');
|
||||||
|
this.nodes().to$().css('--bs-table-accent-bg', '');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
正在加载…
在新工单中引用