Bug 320437: Spellchecking menu checkboxes don't work, patch by Dave Townsend <mossop@blueprintit.co.uk>, r=brettw
git-svn-id: svn://10.0.0.236/trunk@189571 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -48,6 +48,7 @@
|
||||
oncommand="InlineSpellCheckerUI.addToDictionary();"/>
|
||||
<menuitem id="spell-check-enabled"
|
||||
label="&spellEnable.label;"
|
||||
type="checkbox"
|
||||
accesskey="&spellEnable.accesskey;"
|
||||
oncommand="InlineSpellCheckerUI.toggleEnabled();"/>
|
||||
<menu id="spell-dictionaries"
|
||||
|
||||
@@ -183,6 +183,7 @@ var InlineSpellCheckerUI = {
|
||||
this.mDictionaryNames.push(list[i]);
|
||||
var item = document.createElement("menuitem");
|
||||
item.setAttribute("label", list[i]);
|
||||
item.setAttribute("type", "checkbox");
|
||||
this.mDictionaryItems.push(item);
|
||||
if (curlang == list[i]) {
|
||||
item.setAttribute("checked", "true");
|
||||
|
||||
@@ -278,7 +278,7 @@
|
||||
<xul:menuitem label="&spellNoSuggestions.label;" anonid="spell-no-suggestions" disabled="true"/>
|
||||
<xul:menuseparator anonid="spell-suggestions-separator"/>
|
||||
<xul:menuitem label="&spellAddToDictionary.label;" accesskey="&spellAddToDictionary.accesskey;" anonid="spell-add-to-dictionary" oncommand="this.parentNode.parentNode.spellui.addToDictionary();"/>
|
||||
<xul:menuitem label="&spellEnable.label;" accesskey="&spellEnable.accesskey;" anonid="spell-check-enabled" oncommand="this.parentNode.parentNode.spellui.toggleEnabled();"/>
|
||||
<xul:menuitem label="&spellEnable.label;" type="checkbox" accesskey="&spellEnable.accesskey;" anonid="spell-check-enabled" oncommand="this.parentNode.parentNode.spellui.toggleEnabled();"/>
|
||||
<xul:menu label="&spellDictionaries.label;" accesskey="&spellDictionaries.accesskey;" anonid="spell-dictionaries">
|
||||
<xul:menupopup anonid="spell-dictionaries-menu"
|
||||
onpopupshowing="event.stopPropagation();"
|
||||
|
||||
Reference in New Issue
Block a user