From 9205e3c0f6b2871526aa0cb0ac3c982dcb9c0cd4 Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Thu, 5 Jul 2007 19:13:59 +0000 Subject: [PATCH] Monotone-Parent: 9ee35442ae529d1c136cdfc26e4e560b8b4e3a98 Monotone-Revision: 4b2181d43537a29e80a258caea24faf48661e9f8 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-07-05T19:13:59 Monotone-Branch: ca.inverse.sogo --- NEWS | 1 + .../SchedulerUI/UIxCalDateSelector.wox | 23 ++---- UI/WebServerResources/HTMLElement.js | 2 +- UI/WebServerResources/SchedulerUI.js | 82 ++++++++++--------- UI/WebServerResources/UIxComponentEditor.js | 19 ++++- UI/WebServerResources/generic.js | 46 ++++------- 6 files changed, 84 insertions(+), 89 deletions(-) diff --git a/NEWS b/NEWS index 4d5694a24..ab0830fb7 100644 --- a/NEWS +++ b/NEWS @@ -4,3 +4,4 @@ - added the ability to view the message source; - no longer autocreate folders if we are not their owners; - made compatible with PostgreSQL 8.2; +- the months and years menus of the date selector would no longer appear; diff --git a/UI/Templates/SchedulerUI/UIxCalDateSelector.wox b/UI/Templates/SchedulerUI/UIxCalDateSelector.wox index cff93ce68..f2fb1e15e 100644 --- a/UI/Templates/SchedulerUI/UIxCalDateSelector.wox +++ b/UI/Templates/SchedulerUI/UIxCalDateSelector.wox @@ -6,27 +6,14 @@ xmlns:label="OGo:label" id="dateSelector">
- - - +
(itemY + submenuItem.offsetHeight))) { - hideMenu(event, parentMenu.submenu); + hideMenu(parentMenu.submenu); parentMenu.submenu = null; parentMenu.submenuItem = null; parentMenu.setAttribute('onmousemove', null); @@ -769,7 +768,7 @@ function popupSearchMenu(event) { event.returnValue = false; if (document.currentPopupMenu) - hideMenu(event, document.currentPopupMenu); + hideMenu(document.currentPopupMenu); var popup = $(menuId); popup.setStyle({ top: this.offsetHeight + "px", @@ -891,29 +890,18 @@ function initCriteria() { } /* toolbar buttons */ -function popupToolbarMenu(event, menuId) { - var toolbar = $("toolbar"); - var node = getTarget(event); - if (node.tagName != 'A') - node = node.getParentWithTagName("a"); - node = node.childNodesWithTag("span")[0]; +function popupToolbarMenu(node, menuId) { + if (document.currentPopupMenu) + hideMenu(document.currentPopupMenu); - if (event.button == 0) { - event.cancelBubble = true; - event.returnValue = false; - - if (document.currentPopupMenu) - hideMenu(event, document.currentPopupMenu); - - var popup = document.getElementById(menuId); - var top = node.offsetTop + node.offsetHeight - 2; - popup.setStyle({ top: top + "px", - left: node.cascadeLeftOffset() + "px", - visibility: "visible" }); + var popup = $(menuId); + var top = node.top + node.offsetHeight - 2; + popup.setStyle({ top: top + "px", + left: node.cascadeLeftOffset() + "px", + visibility: "visible" }); - document.currentPopupMenu = popup; - Event.observe(document.body, "click", onBodyClickMenuHandler); - } + document.currentPopupMenu = popup; + Event.observe(document.body, "click", onBodyClickMenuHandler); } /* contact selector */