indicate that there are events today in notifications by changing the badge class from secondary to danger. issue #1001

This commit is contained in:
Mario Vavti 2018-03-14 21:39:33 +01:00
parent 9f4064e03b
commit 9d230b1f4c

View File

@ -436,6 +436,14 @@ function handleNotifications(data) {
$('.notifications-btn-icon').removeClass('fa-exclamation-triangle');
$('.notifications-btn-icon').addClass('fa-exclamation-circle');
}
if(data.all_events_today) {
$('.all_events-update').removeClass('badge-secondary');
$('.all_events-update').addClass('badge-danger');
}
else {
$('.all_events-update').removeClass('badge-danger');
$('.all_events-update').addClass('badge-secondary');
}
$.each(data, function(index, item) {
//do not process those