Index: chrome/content/ui/sidebar.xul |
=================================================================== |
--- a/chrome/content/ui/sidebar.xul |
+++ b/chrome/content/ui/sidebar.xul |
@@ -83,18 +83,18 @@ |
</rows> |
</grid> |
</tooltip> |
<menupopup id="context" onpopupshowing="return fillInContext(event)"> |
<menuitem id="contextBlock" label="&context.block.label;…" oncommand="doBlock()" key="block-key"/> |
<menuitem id="contextWhitelist" label="&context.whitelist.label;…" oncommand="doBlock()" key="block-key"/> |
<menuitem id="contextEditFilter" label="&context.editfilter.label;…" oncommand="editFilter()"/> |
- <menuitem id="contextDisableFilter" labeltempl="&context.disablefilter.label;" oncommand="enableFilter(treeView.getSelectedItem().filter, false)"/> |
- <menuitem id="contextEnableFilter" labeltempl="&context.enablefilter.label;" oncommand="enableFilter(treeView.getSelectedItem().filter, true)"/> |
+ <menuitem id="contextDisableFilter" labeltempl="&context.disablefilter.label;" oncommand="enableFilter(getFilter(treeView.getSelectedItem()), false)"/> |
+ <menuitem id="contextEnableFilter" labeltempl="&context.enablefilter.label;" oncommand="enableFilter(getFilter(treeView.getSelectedItem()), true)"/> |
<menuitem id="contextDisableOnSite" labeltempl="&context.disablefilteronsite.label;" oncommand="disableOnSite()"/> |
<menuseparator id="contextOpenSep"/> |
<menuitem id="contextOpen" label="&context.open.label;" oncommand="openInTab(null, event)"/> |
<menuitem id="contextFlash" label="&context.flash.label;" oncommand="onSelectionChange()"/> |
<menuitem id="contextCopy" label="&context.copy.label;" command="copy-command" key="copy-key"/> |
<menuitem id="contextCopyFilter" label="&context.copyFilter.label;" oncommand="copyFilter()"/> |
<menuseparator id="contextSelectSep"/> |
<menuitem id="contextSelectAll" label="&context.selectAll.label;" command="selectAll-command" key="selectAll-key"/> |