Fix colorazione hooks
This commit is contained in:
parent
f3dfaab57a
commit
9c5a2527c7
|
@ -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()) {
|
||||||
|
|
Loading…
Reference in New Issue