From 9dc99f71daa766af71d1252236c4436b5ac894bb Mon Sep 17 00:00:00 2001 From: "Berend.Cornelius%sun.com" Date: Fri, 30 May 2008 10:19:58 +0000 Subject: [PATCH] Bug 436333-[Today Pane] New git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_BRANCH@251961 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/calendar/base/content/agenda-listbox.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/mozilla/calendar/base/content/agenda-listbox.js b/mozilla/calendar/base/content/agenda-listbox.js index 2f6cd650be6..b107e00c07f 100644 --- a/mozilla/calendar/base/content/agenda-listbox.js +++ b/mozilla/calendar/base/content/agenda-listbox.js @@ -412,12 +412,12 @@ function deleteSelectedItem(aDoNotConfirm) { agendaListbox.createNewEvent = function createNewEvent(aEvent) { - if (aEvent.target.localName == "richlistbox") { - // Create new event for the date currently displayed in the agenda. Setting - // isDate = true automatically makes the start time be the next full hour. - var eventStart = agendaListbox.today.start.clone(); - eventStart.isDate = true; - createEventWithDialog(getSelectedCalendar(), eventStart); + if (!this.isEventListItem(aEvent.target)){ + // Create new event for the date currently displayed in the agenda. Setting + // isDate = true automatically makes the start time be the next full hour. + var eventStart = agendaListbox.today.start.clone(); + eventStart.isDate = true; + createEventWithDialog(getSelectedCalendar(), eventStart); } }