From 494e54e861942647f537dd6565b48faa5bd2fee7 Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Mon, 15 Feb 2010 15:26:08 +0000 Subject: [PATCH] Monotone-Parent: c088913eb8e3df69e9e9a7f92fa06e84b9099eff Monotone-Revision: 7636364e216ee5da36da58bf68969d1177723bff Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2010-02-15T15:26:08 Monotone-Branch: ca.inverse.sogo --- ChangeLog | 3 +++ UI/WebServerResources/SchedulerUI.js | 5 +++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 06fbc9f12..2de356649 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2010-02-15 Wolfgang Sourdeau + * UI/WebServerResources/SchedulerUI.js (gotoToday): set the + selected day to the today date. + * UI/WebServerResources/SchedulerUIDnD.js (SOGoEventDragGhostController.showGhosts): ghosts now also have an "eventInside" DIV to contain the title and draw the border. This diff --git a/UI/WebServerResources/SchedulerUI.js b/UI/WebServerResources/SchedulerUI.js index 814602615..31c3de91f 100644 --- a/UI/WebServerResources/SchedulerUI.js +++ b/UI/WebServerResources/SchedulerUI.js @@ -697,8 +697,7 @@ function onDateSelectorGotoMonth(event) { function onCalendarGotoDay(node) { var day = node.getAttribute("date"); - var needRefresh = (listFilter == 'view_selectedday' - && day != currentDay); + var needRefresh = (listFilter == 'view_selectedday' && day != currentDay); changeDateSelectorDisplay(day); changeCalendarDisplay( { "day": day } ); @@ -709,6 +708,8 @@ function onCalendarGotoDay(node) { } function gotoToday() { + var todayDate = new Date(); + selectedDayDate = todayDate.getDayString(); changeDateSelectorDisplay(''); changeCalendarDisplay();