diff --git a/src/webui/www/ise/htm/header.htm b/src/webui/www/ise/htm/header.htm
index f010df8c..40d08193 100644
--- a/src/webui/www/ise/htm/header.htm
+++ b/src/webui/www/ise/htm/header.htm
@@ -7,7 +7,10 @@
- |
+
+
+
+ |
diff --git a/src/webui/www_source/ise/js/functions.js b/src/webui/www_source/ise/js/functions.js
index af6b28f3..243484f0 100644
--- a/src/webui/www_source/ise/js/functions.js
+++ b/src/webui/www_source/ise/js/functions.js
@@ -154,37 +154,31 @@ resetReGaSaveButton = function () {
};
setAlarmMessageCount = function (count) {
-
if ($("msgAlarms")) {
- //$("msgAlarms").innerHTML = "${Alarmmeldungen} (" + count + ")";
- $("msgAlarms").innerHTML = translateKey('alarmMsg') + " (" + count + ")";
-
- }
- if (count === 0) {
- if ($("imgAlarms")) {
- $("imgAlarms").src = "/ise/img/dot/green.png";
+ const newMsg = translateKey('alarmMsg') + " (" + count + ")";
+ if ($("msgAlarms").innerHTML !== newMsg) {
+ $("msgAlarms").innerHTML = newMsg;
}
}
- else {
- if ($("imgAlarms")) {
- $("imgAlarms").src = "/ise/img/dot/red.png";
+ if ($("imgAlarms")) {
+ const newImg = (count === 0 ? '/ise/img/dot/green.png' : '/ise/img/dot/red.png');
+ if ($("imgAlarms").getAttribute('src') !== newImg) {
+ $("imgAlarms").src = newImg;
}
}
};
setServiceMessageCount = function (count) {
if ($("msgServices")) {
- $("msgServices").innerHTML = translateKey('serviceMsg') + " (" + count + ")";
-
- }
- if (count === 0) {
- if ($("imgServices")) {
- $("imgServices").src = "/ise/img/dot/green.png";
+ const newMsg = translateKey('serviceMsg') + " (" + count + ")";
+ if ($("msgServices").innerHTML !== newMsg) {
+ $("msgServices").innerHTML = newMsg;
}
}
- else {
- if ($("imgServices")) {
- $("imgServices").src = "/ise/img/dot/yellow.png";
+ if ($("imgServices")) {
+ const newImg = (count === 0 ? '/ise/img/dot/green.png' : '/ise/img/dot/yellow.png');
+ if ($("imgServices").getAttribute('src') !== newImg) {
+ $("imgServices").src = newImg;
}
}
};
@@ -2262,12 +2256,14 @@ StopFlashing = function()
SwitchOnFlashLight = function()
{
- if ($("headerLogo")) { $("headerLogo").src = "/ise/img/homematic_logo_small_red.png"; }
+ if ($("headerLogo")) { $("headerLogo").classList.add('hidden'); }
+ if ($("headerLogoRed")) { $("headerLogoRed").classList.remove('hidden'); }
};
SwitchOffFlashLight = function()
{
- if ($("headerLogo")) { $("headerLogo").src = "/ise/img/homematic_logo_small.png"; }
+ if ($("headerLogo")) { $("headerLogo").classList.remove('hidden'); }
+ if ($("headerLogoRed")) { $("headerLogoRed").classList.add('hidden'); }
};
getAjaxLoadElem = function() {
|