mirror of
https://github.com/pi-hole/web.git
synced 2025-12-24 12:48:29 +00:00
Don't add glow property for percentage if not changed
This commit is contained in:
@@ -378,7 +378,9 @@ function updateSummaryData(runOnce) {
|
||||
|
||||
["ads_blocked_today", "dns_queries_today", "ads_percentage_today"].forEach(function(today) {
|
||||
var todayElement = $("h3#" + today);
|
||||
todayElement.text() !== data[today] && todayElement.addClass("glow");
|
||||
todayElement.text() !== data[today] &&
|
||||
todayElement.text() !== data[today] + "%" &&
|
||||
todayElement.addClass("glow");
|
||||
});
|
||||
|
||||
window.setTimeout(function() {
|
||||
|
||||
Reference in New Issue
Block a user