зеркало из https://github.com/mozilla/pjs.git
Bug 309505 Switching views in Lightning results in gray screen, aka decks suck. r=dmose
This commit is contained in:
Родитель
1be2e6565e
Коммит
bbb6879fe4
|
@ -149,6 +149,13 @@ function selectedCalendarPane(event)
|
|||
function LtnObserveDisplayDeckChange(event)
|
||||
{
|
||||
var deck = event.target;
|
||||
|
||||
// Bug 309505: The 'select' event also fires when we change the selected
|
||||
// panel of calendar-view-box. Workaround with this check.
|
||||
if (deck.id != "displayDeck") {
|
||||
return;
|
||||
}
|
||||
|
||||
var id = null;
|
||||
try { id = deck.selectedPanel.id } catch (e) { }
|
||||
if (id == "calendar-view-box") {
|
||||
|
|
Загрузка…
Ссылка в новой задаче