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:
gavin%gavinsharp.com
2006-02-10 20:28:50 +00:00
parent 302dc89bdb
commit 4cd0fed23a
3 changed files with 3 additions and 1 deletions

View File

@@ -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"

View File

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

View File

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