aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2018-03-14 21:39:33 +0100
committerMario Vavti <mario@mariovavti.com>2018-03-14 21:39:33 +0100
commit9d230b1f4cbffe5d937a357adbe8cfe73ce7f792 (patch)
tree4f001114d5a18d476a63a31371034877a4875e40
parent9f4064e03b16044c84580d622dfaa1b334897a2e (diff)
downloadvolse-hubzilla-9d230b1f4cbffe5d937a357adbe8cfe73ce7f792.tar.gz
volse-hubzilla-9d230b1f4cbffe5d937a357adbe8cfe73ce7f792.tar.bz2
volse-hubzilla-9d230b1f4cbffe5d937a357adbe8cfe73ce7f792.zip
indicate that there are events today in notifications by changing the badge class from secondary to danger. issue #1001
-rw-r--r--view/js/main.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/view/js/main.js b/view/js/main.js
index 98a756fff..e700c4e6e 100644
--- a/view/js/main.js
+++ b/view/js/main.js
@@ -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