From 1ec4e70a8dfeba4bb9c84648c8a02922ce4169c9 Mon Sep 17 00:00:00 2001 From: wolfgang Date: Thu, 5 Jul 2007 19:15:26 +0000 Subject: [PATCH] git-svn-id: http://svn.opengroupware.org/SOGo/inverse/trunk@1100 d1b88da0-ebda-0310-925b-ed51d893ca5b --- NEWS | 1 + .../SchedulerUI/UIxCalDateSelector.wox | 23 ++---- UI/WebServerResources/HTMLElement.js | 2 +- UI/WebServerResources/SchedulerUI.js | 82 ++++++++++--------- UI/WebServerResources/UIxComponentEditor.js | 21 +++-- UI/WebServerResources/generic.js | 50 +++++------ 6 files changed, 87 insertions(+), 92 deletions(-) diff --git a/NEWS b/NEWS index 4d5694a2..ab0830fb 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 cff93ce6..f2fb1e15 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]; - - 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" }); - - document.currentPopupMenu = popup; - Event.observe(document.body, "click", onBodyClickMenuHandler); - } +function popupToolbarMenu(node, menuId) { + if (document.currentPopupMenu) + hideMenu(document.currentPopupMenu); + + 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); } /* contact selector */ -- 2.39.5