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

Side by Side Diff: options.js

Issue 29339672: Issue 3915 - Avoid listing special subscriptions (adblockpluschrome) (Closed)
Patch Set: Created April 13, 2016, 8:07 a.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-2016 Eyeo GmbH 3 * Copyright (C) 2006-2016 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 453 matching lines...) Expand 10 before | Expand all | Expand 10 after
464 case "downloadStatus": 464 case "downloadStatus":
465 case "homepage": 465 case "homepage":
466 case "lastDownload": 466 case "lastDownload":
467 case "title": 467 case "title":
468 if (element) 468 if (element)
469 updateSubscriptionInfo(element, subscription); 469 updateSubscriptionInfo(element, subscription);
470 break; 470 break;
471 case "added": 471 case "added":
472 if (subscription.url == acceptableAdsUrl) 472 if (subscription.url == acceptableAdsUrl)
473 $("#acceptableAds").prop("checked", true); 473 $("#acceptableAds").prop("checked", true);
474 else if (!element) 474 else if (!subscription.isSpecial && !element)
475 addSubscriptionEntry(subscription); 475 addSubscriptionEntry(subscription);
476 break; 476 break;
477 case "removed": 477 case "removed":
478 if (subscription.url == acceptableAdsUrl) 478 if (subscription.url == acceptableAdsUrl)
479 $("#acceptableAds").prop("checked", false); 479 $("#acceptableAds").prop("checked", false);
480 else if (element) 480 else if (element)
481 element.parentNode.removeChild(element); 481 element.parentNode.removeChild(element);
482 break; 482 break;
483 } 483 }
484 } 484 }
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
741 onFilterMessage(message.action, message.args[0]); 741 onFilterMessage(message.action, message.args[0]);
742 break; 742 break;
743 case "prefs.respond": 743 case "prefs.respond":
744 onPrefMessage(message.action, message.args[0]); 744 onPrefMessage(message.action, message.args[0]);
745 break; 745 break;
746 case "subscriptions.respond": 746 case "subscriptions.respond":
747 onSubscriptionMessage(message.action, message.args[0]); 747 onSubscriptionMessage(message.action, message.args[0]);
748 break; 748 break;
749 } 749 }
750 }); 750 });
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