indicate that there are events today in notifications by changing the badge class from secondary to danger. issue #1001
This commit is contained in:
parent
9f4064e03b
commit
9d230b1f4c
@ -436,6 +436,14 @@ function handleNotifications(data) {
|
|||||||
$('.notifications-btn-icon').removeClass('fa-exclamation-triangle');
|
$('.notifications-btn-icon').removeClass('fa-exclamation-triangle');
|
||||||
$('.notifications-btn-icon').addClass('fa-exclamation-circle');
|
$('.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) {
|
$.each(data, function(index, item) {
|
||||||
//do not process those
|
//do not process those
|
||||||
|
Reference in New Issue
Block a user