mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-03-16 12:05:56 +00:00
fix(calendar): Fix calendar green dot stucks in original day when browser is opened for days and day changed
This commit is contained in:
@@ -175,7 +175,13 @@
|
||||
var date = newDate? newDate.getDayString() : angular.element($event.currentTarget).attr('date');
|
||||
if (newDate)
|
||||
_formatDate(newDate);
|
||||
|
||||
if (isToday) {
|
||||
var d = new Date();
|
||||
date = String(d.getFullYear()) + String((d.getMonth() + 1)).padStart(2, '0') + String((d.getDate())).padStart(2, '0');
|
||||
}
|
||||
$state.go('calendars.view', { day: date });
|
||||
|
||||
// Refresh calendar data if click on today
|
||||
if (isToday) {
|
||||
$rootScope.$emit('calendars:list');
|
||||
|
||||
Reference in New Issue
Block a user