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

Side by Side Diff: chrome/content/ui/sidebar.js

Issue 29329630: Issue 3222 - Remove ancient dead code (Closed)
Patch Set: Created Nov. 2, 2015, 3 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * This file is part of Adblock Plus <https://adblockplus.org/>, 2 * This file is part of Adblock Plus <https://adblockplus.org/>,
3 * Copyright (C) 2006-2015 Eyeo GmbH 3 * Copyright (C) 2006-2015 Eyeo GmbH
4 * 4 *
5 * Adblock Plus is free software: you can redistribute it and/or modify 5 * Adblock Plus is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 3 as 6 * it under the terms of the GNU General Public License version 3 as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
8 * 8 *
9 * Adblock Plus is distributed in the hope that it will be useful, 9 * Adblock Plus is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 479 matching lines...) Expand 10 before | Expand all | Expand 10 after
490 490
491 function editFilter() 491 function editFilter()
492 { 492 {
493 var item = treeView.getSelectedItem(); 493 var item = treeView.getSelectedItem();
494 if (treeView.data && !treeView.data.length) 494 if (treeView.data && !treeView.data.length)
495 item = treeView.getDummyTooltip(); 495 item = treeView.getDummyTooltip();
496 496
497 if (!("filter" in item) || !item.filter) 497 if (!("filter" in item) || !item.filter)
498 return; 498 return;
499 499
500 if (!("location") in item)
501 item.location = undefined
502
503 UI.openFiltersDialog(item.filter); 500 UI.openFiltersDialog(item.filter);
504 } 501 }
505 502
506 function enableFilter(filter, enable) { 503 function enableFilter(filter, enable) {
507 filter.disabled = !enable; 504 filter.disabled = !enable;
508 505
509 treeView.boxObject.invalidate(); 506 treeView.boxObject.invalidate();
510 } 507 }
511 508
512 /** 509 /**
(...skipping 741 matching lines...) Expand 10 before | Expand all | Expand 10 after
1254 return {tooltip: this.itemsDummyTooltip}; 1251 return {tooltip: this.itemsDummyTooltip};
1255 }, 1252 },
1256 1253
1257 invalidateItem: function(item) 1254 invalidateItem: function(item)
1258 { 1255 {
1259 let row = this.data.indexOf(item); 1256 let row = this.data.indexOf(item);
1260 if (row >= 0) 1257 if (row >= 0)
1261 this.boxObject.invalidateRow(row); 1258 this.boxObject.invalidateRow(row);
1262 } 1259 }
1263 } 1260 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld