Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/webui/www/ise/htm/header.htm
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@
</colgroup>
<tr>
<!-- Logo -->
<td class="CLASS11100"><img id="headerLogo" src="/ise/img/homematic_logo_small.png" onclick="LogoClick();" class="SmallLogo" alt="" /></td>
<td class="CLASS11100">
<img id="headerLogo" src="/ise/img/homematic_logo_small.png" onclick="LogoClick();" class="SmallLogo" alt="" />
<img id="headerLogoRed" src="/ise/img/homematic_logo_small_red.png" onclick="LogoClick();" class="SmallLogo hidden" alt="" />
</td>
<!-- Username und Pfad-->
<td class="CLASS11101">
<table class="CLASS11102">
Expand Down
40 changes: 18 additions & 22 deletions src/webui/www_source/ise/js/functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
};
Expand Down Expand Up @@ -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() {
Expand Down