Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: chrome/content/ui/sidebar.xul

Issue 29331911: Issue 3370 - Blockable items: Fix broken Disable filter context menu item (Closed)
Patch Set: Created Dec. 4, 2015, 11:23 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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"/>
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld