Fix for bug 81677; update commands _after_ setting focus when switching view modes. r=timeless, sr=blizzard

git-svn-id: svn://10.0.0.236/trunk@95402 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
sfraser%netscape.com
2001-05-18 19:59:17 +00:00
parent b684f8fcbc
commit 2cacf33420

View File

@@ -1250,8 +1250,6 @@ function SetDisplayMode(mode)
gFormatToolbar.setAttribute("hidden", "true");
}
// update commands to disable stuff
window.updateCommands("mode_switch");
gSourceContentWindow.focus();
}
else
@@ -1265,12 +1263,12 @@ function SetDisplayMode(mode)
gFormatToolbar.setAttribute("hidden", gFormatToolbarHidden);
}
// update commands to re-enable stuff
window.updateCommands("mode_switch");
gContentWindow.focus();
}
// update commands to disable or re-enable stuff
window.updateCommands("mode_switch");
// We must set check on menu item since toolbar may have been used
document.getElementById("viewPreviewMode").setAttribute("checked","false");
document.getElementById("viewNormalMode").setAttribute("checked","false");