mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-31 16:14:53 +00:00
Minor improvements in the web month calendar selector
Monotone-Parent: 90d4316b0cb362413584d9c34867b834b625986b Monotone-Revision: cff25745ccc8bc7caca33ea99cd3b32e15d60a4e Monotone-Author: flachapelle@inverse.ca Monotone-Date: 2009-07-28T20:09:24 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -804,9 +804,9 @@ function changeCalendarDisplay(data, newView) {
|
||||
document.selectedDate.deselect();
|
||||
|
||||
// Select day in date selector
|
||||
var selectedLink = $$('table#dateSelectorTable a[day='+day+']');
|
||||
var selectedLink = $$('table#dateSelectorTable span[day='+day+']');
|
||||
if (selectedLink.length > 0) {
|
||||
selectedCell = selectedLink[0].up(1);
|
||||
selectedCell = selectedLink[0].getParentWithTagName("td");
|
||||
selectedCell.selectElement();
|
||||
document.selectedDate = selectedCell;
|
||||
}
|
||||
@@ -1178,8 +1178,7 @@ function calendarDisplayCallback(http) {
|
||||
observer = $("monthDaysView");
|
||||
}
|
||||
initMenu($("currentViewMenu"), menu);
|
||||
observer.observe("contextmenu", function(event) {
|
||||
popupMenu(event, 'currentViewMenu', this); });
|
||||
observer.observe("contextmenu", onMenuCurrentView);
|
||||
|
||||
var contentView;
|
||||
if (currentView == "monthview")
|
||||
@@ -1766,6 +1765,10 @@ function onMenuSharing(event) {
|
||||
}
|
||||
}
|
||||
|
||||
function onMenuCurrentView(event) {
|
||||
popupMenu(event, 'currentViewMenu', this);
|
||||
}
|
||||
|
||||
function configureDragHandles() {
|
||||
var handle = $("verticalDragHandle");
|
||||
if (handle) {
|
||||
@@ -1784,7 +1787,7 @@ function configureDragHandles() {
|
||||
|
||||
function initCalendarSelector() {
|
||||
var selector = $("calendarSelector");
|
||||
updateCalendarStatus();
|
||||
updateCalendarStatus(); // triggers the initial events refresh
|
||||
selector.changeNotification = updateCalendarsList;
|
||||
|
||||
var list = $("calendarList");
|
||||
|
||||
Reference in New Issue
Block a user