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

This commit is contained in:
sfraser%netscape.com 2001-05-18 19:59:17 +00:00
parent 678b80f10b
commit 493e834a55

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");