mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-07 09:13:12 +00:00
Fix for bug 81677; update commands _after_ setting focus when switching view modes. r=timeless, sr=blizzard
This commit is contained in:
parent
678b80f10b
commit
493e834a55
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user