Checked in patch for bug 234463: double-clicking empty event list area

opens malfunctioning Edit Event dialog
This commit is contained in:
mostafah%oeone.com 2004-02-23 16:25:43 +00:00
Родитель 50e37c149c
Коммит ad3540b59d
2 изменённых файлов: 8 добавлений и 8 удалений

Просмотреть файл

@ -687,6 +687,9 @@ function newEvent( startDate, endDate )
// create a new event to be edited and added
var calendarEvent = createEvent();
if( !startDate )
startDate = gCalendarWindow.currentView.getNewEventDate();
calendarEvent.start.setTime( startDate );
if( !endDate )

Просмотреть файл

@ -253,11 +253,9 @@ function unifinderDoubleClickEvent( event )
var calendarEvent = getCalendarEventFromEvent( event );
if( calendarEvent != null )
{
// go to day view, of the day of the event, select the event
editEvent( calendarEvent );
}
else
newEvent();
}
@ -270,11 +268,10 @@ function getCalendarEventFromEvent( event )
if( row.value != -1 && row.value < tree.view.rowCount )
{
var event = tree.eventView.getCalendarEventAtRow( row.value );
return event;
return ( tree.eventView.getCalendarEventAtRow( row.value ) );
} else {
return ( null );
}
return( false );
}
/**