зеркало из https://github.com/mozilla/gecko-dev.git
Bug 322095 Allow selecting of single instances of repeating events r=mvl
This commit is contained in:
Родитель
c6e8b2d257
Коммит
ecb1a78791
|
@ -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();
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче