diff --git a/content/shared/public/nsXULAtomList.h b/content/shared/public/nsXULAtomList.h index 5bbc881536dc..fda597c811d1 100644 --- a/content/shared/public/nsXULAtomList.h +++ b/content/shared/public/nsXULAtomList.h @@ -296,3 +296,4 @@ XUL_ATOM(properties, "properties") XUL_ATOM(sort, "sort") XUL_ATOM(sortDirection, "sortDirection") XUL_ATOM(sortActive, "sortActive") +XUL_ATOM(selectedIndex, "selectedIndex") diff --git a/editor/ui/composer/content/editor.js b/editor/ui/composer/content/editor.js index e4b74b72fb3b..d35cbe44f2a6 100644 --- a/editor/ui/composer/content/editor.js +++ b/editor/ui/composer/content/editor.js @@ -1337,7 +1337,7 @@ function SetDisplayMode(mode) if (mode == DisplayModeSource) { // Switch to the sourceWindow (second in the deck) - gContentWindowDeck.setAttribute("index","1"); + gContentWindowDeck.setAttribute("selectedIndex","1"); //Hide the formatting toolbar if not already hidden gFormatToolbarHidden = gFormatToolbar.getAttribute("hidden"); @@ -1351,7 +1351,7 @@ function SetDisplayMode(mode) else { // Switch to the normal editor (first in the deck) - gContentWindowDeck.setAttribute("index","0"); + gContentWindowDeck.setAttribute("selectedIndex","0"); // Restore menus and toolbars if (gFormatToolbarHidden != "true") diff --git a/editor/ui/composer/content/editor.xul b/editor/ui/composer/content/editor.xul index f40655551edf..8b458fcf4d27 100644 --- a/editor/ui/composer/content/editor.xul +++ b/editor/ui/composer/content/editor.xul @@ -237,7 +237,7 @@