Fix colorazione hooks

This commit is contained in:
loviuz 2024-06-29 12:27:33 +02:00
parent f3dfaab57a
commit 9c5a2527c7
1 changed files with 4 additions and 4 deletions

View File

@ -172,12 +172,12 @@ function updateHook(hook) {
if (number == 0) { if (number == 0) {
$("#hooks-notified").html('<i class="fa fa-check" aria-hidden="true"></i>'); $("#hooks-notified").html('<i class="fa fa-check" aria-hidden="true"></i>');
$("#hooks-label").removeClass(); $("#hooks-badge").removeClass();
$("#hooks-label").addClass('badge').addClass('badge-success'); $("#hooks-badge").addClass('badge').addClass('badge-success');
} else { } else {
$("#hooks-notified").text(number); $("#hooks-notified").text(number);
$("#hooks-label").removeClass(); $("#hooks-badge").removeClass();
$("#hooks-label").addClass('badge').addClass('badge-danger'); $("#hooks-badge").addClass('badge').addClass('badge-danger');
} }
if (counter == $("#hooks-number").text()) { if (counter == $("#hooks-number").text()) {