aboutsummaryrefslogtreecommitdiffstats
path: root/view/js/main.js
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-06-24 17:23:58 -0700
committerfriendica <info@friendica.com>2014-06-24 17:23:58 -0700
commit6848a5f9a716b790575f3b9269579b621496cbc7 (patch)
tree5b6093eb2c4d32d7d126c385da05407ad25da521 /view/js/main.js
parent3878f1e69b3ab1adc35eb76c213db27028e67d10 (diff)
downloadvolse-hubzilla-6848a5f9a716b790575f3b9269579b621496cbc7.tar.gz
volse-hubzilla-6848a5f9a716b790575f3b9269579b621496cbc7.tar.bz2
volse-hubzilla-6848a5f9a716b790575f3b9269579b621496cbc7.zip
Events show up as notifications about a week in advance so you know they're coming. But let's put an indicator next to the notification count when there's an event that is actually happening today -- so you don't have to look at the calendar or notification detail every day for a week to figure out if the day has finally arrived yet.
Diffstat (limited to 'view/js/main.js')
-rw-r--r--view/js/main.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/view/js/main.js b/view/js/main.js
index a7745cbaf..26cf12b47 100644
--- a/view/js/main.js
+++ b/view/js/main.js
@@ -352,18 +352,18 @@
if(data.events == 0) { data.events = ''; $('.events-update').removeClass('show') } else { $('.events-update').addClass('show') }
$('.events-update').html(data.events);
- if(data.events_today == 0) { data.events_today = ''; $('.events-today-update').removeClass('show') } else { $('.events-today-update').addClass('show') }
+ if(data.events_today == 0) { data.events_today = ''; $('.events-today-update').removeClass('show') } else { $('.events-today-update').addClass('show'); $('.events-update').html(data.events + '*'); }
$('.events-today-update').html(data.events_today);
- if(data.birthdays == 0) { data.birthdays = ''; $('.birthdays-update').removeClass('show') } else { $('.birthdays-update').addClass('show') }
+ if(data.birthdays == 0) { data.birthdays = ''; $('.birthdays-update').removeClass('show') } else { $('.birthdays-update').addClass('show'); }
$('.birthdays-update').html(data.birthdays);
- if(data.birthdays_today == 0) { data.birthdays_today = ''; $('.birthdays-today-update').removeClass('show') } else { $('.birthdays-today-update').addClass('show') }
+ if(data.birthdays_today == 0) { data.birthdays_today = ''; $('.birthdays-today-update').removeClass('show') } else { $('.birthdays-today-update').addClass('show'); $('.birthdays-update').html(data.birthdays + '*'); }
$('.birthdays-today-update').html(data.birthdays_today);
if(data.all_events == 0) { data.all_events = ''; $('.all_events-update').removeClass('show') } else { $('.all_events-update').addClass('show') }
$('.all_events-update').html(data.all_events);
- if(data.all_events_today == 0) { data.all_events_today = ''; $('.all_events-today-update').removeClass('show') } else { $('.all_events-today-update').addClass('show') }
+ if(data.all_events_today == 0) { data.all_events_today = ''; $('.all_events-today-update').removeClass('show') } else { $('.all_events-today-update').addClass('show'); $('.all_events-update').html(data.all_events + '*'); }
$('.all_events-today-update').html(data.all_events_today);
$.jGrowl.defaults.closerTemplate = '<div>[ ' + aStr['closeAll'] + ']</div>';