Backed out changeset 6b3dc1102513 (bug 908570)
This commit is contained in:
@@ -368,11 +368,10 @@ nsContextMenu.prototype = {
|
||||
var canSpell = InlineSpellCheckerUI.canSpellCheck &&
|
||||
!InlineSpellCheckerUI.initialSpellCheckPending &&
|
||||
this.canSpellCheck;
|
||||
let showDictionaries = canSpell && InlineSpellCheckerUI.enabled;
|
||||
var onMisspelling = InlineSpellCheckerUI.overMisspelling;
|
||||
var showUndo = canSpell && InlineSpellCheckerUI.canUndo();
|
||||
this.showItem("spell-check-enabled", canSpell);
|
||||
this.showItem("spell-separator", canSpell);
|
||||
this.showItem("spell-separator", canSpell || this.onEditableArea);
|
||||
document.getElementById("spell-check-enabled")
|
||||
.setAttribute("checked", canSpell && InlineSpellCheckerUI.enabled);
|
||||
|
||||
@@ -393,7 +392,7 @@ nsContextMenu.prototype = {
|
||||
this.showItem("spell-no-suggestions", false);
|
||||
|
||||
// dictionary list
|
||||
this.showItem("spell-dictionaries", showDictionaries);
|
||||
this.showItem("spell-dictionaries", canSpell && InlineSpellCheckerUI.enabled);
|
||||
if (canSpell) {
|
||||
var dictMenu = document.getElementById("spell-dictionaries-menu");
|
||||
var dictSep = document.getElementById("spell-language-separator");
|
||||
@@ -405,8 +404,7 @@ nsContextMenu.prototype = {
|
||||
// when there is no spellchecker but we might be able to spellcheck
|
||||
// add the add to dictionaries item. This will ensure that people
|
||||
// with no dictionaries will be able to download them
|
||||
this.showItem("spell-language-separator", showDictionaries);
|
||||
this.showItem("spell-add-dictionaries-main", showDictionaries);
|
||||
this.showItem("spell-add-dictionaries-main", true);
|
||||
}
|
||||
else
|
||||
this.showItem("spell-add-dictionaries-main", false);
|
||||
|
||||
Reference in New Issue
Block a user