Bug 322095 Allow selecting of single instances of repeating events r=mvl

This commit is contained in:
jminta%gmail.com 2006-01-12 20:42:01 +00:00
Родитель c6e8b2d257
Коммит ecb1a78791
2 изменённых файлов: 5 добавлений и 5 удалений

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

@ -84,7 +84,7 @@ CalendarEventSelection.prototype.removeObserver = function calSel_removeObserver
CalendarEventSelection.prototype.addToSelection = function calSel_addToSelection( Event )
{
this.selectedEvents[ this.selectedEvents.length ] = Event.parentItem;
this.selectedEvents[ this.selectedEvents.length ] = Event;
this.onSelectionChanged();
}
@ -93,7 +93,7 @@ CalendarEventSelection.prototype.replaceSelection = function calSel_replaceSelec
{
this.selectedEvents = new Array();
this.selectedEvents[ this.selectedEvents.length ] = Event.parentItem;
this.selectedEvents[ this.selectedEvents.length ] = Event;
this.onSelectionChanged();
@ -112,7 +112,7 @@ CalendarEventSelection.prototype.setArrayToSelection = function calSel_setArrayT
for( var i = 0; i < ArrayOfEvents.length; i++ )
{
this.selectedEvents[ this.selectedEvents.length ] = ArrayOfEvents[i].parentItem;
this.selectedEvents[ this.selectedEvents.length ] = ArrayOfEvents[i];
}
this.onSelectionChanged();
@ -123,7 +123,7 @@ CalendarEventSelection.prototype.isSelectedEvent = function calSel_isSelectedEve
{
for( var i = 0; i < this.selectedEvents.length; i++ )
{
if( this.selectedEvents[i] == Event.parentItem )
if( this.selectedEvents[i] == Event )
return true;
}
return false;

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

@ -248,7 +248,7 @@ function unifinderDoubleClickEvent( event )
var calendarEvent = getCalendarEventFromEvent( event );
if( calendarEvent != null )
editEvent( calendarEvent.parentItem );
editEvent(calendarEvent);
else
newEvent();
}