From aac4082c57085293bbb76de9915db9b5a0727e82 Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Sun, 1 Aug 2010 16:14:29 -0400 Subject: [PATCH] ensure calendar is always on top. Fixes kronolith's event dialog hiding the calendar --- horde/js/calendar.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/horde/js/calendar.js b/horde/js/calendar.js index 76718fae5..d104a7d73 100644 --- a/horde/js/calendar.js +++ b/horde/js/calendar.js @@ -200,8 +200,9 @@ var Horde_Calendar = display: 'block', zIndex: 1 }); - div.setStyle({ zIndex: 2 }); } + + div.setStyle({ zIndex: 999 }); }, hideCal: function() @@ -290,7 +291,7 @@ var Horde_Calendar = } thead.insert(row); - $(document.body).insert({ bottom: new Element('DIV', { id: 'hordeCalendar' }).setStyle({ position: 'absolute' }).hide().insert(table) }); + $(document.body).insert({ bottom: new Element('DIV', { id: 'hordeCalendar' }).setStyle({ position: 'absolute', 'z-index': 999 }).hide().insert(table) }); $('hordeCalendar').observe('click', this.clickHandler.bindAsEventListener(this)); }, -- 2.11.0