зеркало из https://github.com/mozilla/pjs.git
Fixing bug 177299, don't change view if multiple day event is visible.
This commit is contained in:
Родитель
34da6f8b45
Коммит
aeff8f0f58
|
@ -554,7 +554,7 @@ DayView.prototype.getVisibleEvent = function dayview_getVisibleEvent( calendarEv
|
|||
return eventBox;
|
||||
}
|
||||
else
|
||||
return null;
|
||||
return false;
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -831,7 +831,7 @@ MonthView.prototype.getVisibleEvent = function monthView_getVisibleEvent( calend
|
|||
return eventBox;
|
||||
}
|
||||
else
|
||||
return null;
|
||||
return false;
|
||||
}
|
||||
|
||||
MonthView.prototype.selectBoxForEvent = function monthView_selectBoxForEvent( calendarEvent )
|
||||
|
|
|
@ -604,7 +604,7 @@ WeekView.prototype.getVisibleEvent = function( calendarEvent )
|
|||
return eventBox;
|
||||
}
|
||||
else
|
||||
return null;
|
||||
return false;
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -554,7 +554,7 @@ DayView.prototype.getVisibleEvent = function dayview_getVisibleEvent( calendarEv
|
|||
return eventBox;
|
||||
}
|
||||
else
|
||||
return null;
|
||||
return false;
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -831,7 +831,7 @@ MonthView.prototype.getVisibleEvent = function monthView_getVisibleEvent( calend
|
|||
return eventBox;
|
||||
}
|
||||
else
|
||||
return null;
|
||||
return false;
|
||||
}
|
||||
|
||||
MonthView.prototype.selectBoxForEvent = function monthView_selectBoxForEvent( calendarEvent )
|
||||
|
|
|
@ -324,7 +324,8 @@ function unifinderOnSelect( event )
|
|||
var eventStartDate = getNextOrPreviousRecurrence( calendarEvent );
|
||||
|
||||
/* you need this in case the current day is not visible. */
|
||||
gCalendarWindow.currentView.goToDay( eventStartDate, true);
|
||||
if( gCalendarWindow.currentView.getVisibleEvent( calendarEvent ) == false )
|
||||
gCalendarWindow.currentView.goToDay( eventStartDate, true);
|
||||
}
|
||||
|
||||
gCalendarWindow.EventSelection.setArrayToSelection( ArrayOfEvents );
|
||||
|
|
|
@ -604,7 +604,7 @@ WeekView.prototype.getVisibleEvent = function( calendarEvent )
|
|||
return eventBox;
|
||||
}
|
||||
else
|
||||
return null;
|
||||
return false;
|
||||
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче