Bug 436333-[Today Pane] New

git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_BRANCH@251961 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
Berend.Cornelius%sun.com
2008-05-30 10:19:58 +00:00
parent c3efe05e21
commit 9dc99f71da

View File

@@ -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);
}
}