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

Side by Side Diff: new-options.js

Issue 29549891: Issue 5706 - Finish custom filter list dialog (Closed)
Patch Set: Addressed Ire's comments Created Sept. 21, 2017, 7:08 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 | « new-options.html ('k') | skin/icons/attention.svg » ('j') | 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-present eyeo GmbH 3 * Copyright (C) 2006-present 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 659 matching lines...) Expand 10 before | Expand all | Expand 10 after
670 ext.backgroundPage.sendMessage({ 670 ext.backgroundPage.sendMessage({
671 type: "subscriptions.update" 671 type: "subscriptions.update"
672 }); 672 });
673 break; 673 break;
674 case "update-subscription": 674 case "update-subscription":
675 ext.backgroundPage.sendMessage({ 675 ext.backgroundPage.sendMessage({
676 type: "subscriptions.update", 676 type: "subscriptions.update",
677 url: findParentData(element, "access", false) 677 url: findParentData(element, "access", false)
678 }); 678 });
679 break; 679 break;
680 case "validate-import-subscription":
681 let form = findParentData(element, "validation", true);
682 if (!form)
683 return;
684
685 if (form.checkValidity())
686 {
687 addEnableSubscription(E("import-list-url").value,
ire 2017/09/22 08:28:53 NIT: I'm getting an eslint error here: "no-trailin
saroyanm 2017/09/22 09:46:58 Done.
688 E("import-list-title").value);
689 form.reset();
690 closeDialog();
691 }
692 else
693 {
694 form.querySelector(":invalid").focus();
695 }
696 break;
680 } 697 }
681 } 698 }
682 699
683 function setCustomFiltersView(mode) 700 function setCustomFiltersView(mode)
684 { 701 {
685 let customFiltersElement = E("custom-filters-raw"); 702 let customFiltersElement = E("custom-filters-raw");
686 updateCustomFiltersUi(); 703 updateCustomFiltersUi();
687 if (mode == "read") 704 if (mode == "read")
688 { 705 {
689 customFiltersElement.disabled = true; 706 customFiltersElement.disabled = true;
(...skipping 643 matching lines...) Expand 10 before | Expand all | Expand 10 after
1333 }); 1350 });
1334 ext.backgroundPage.sendMessage({ 1351 ext.backgroundPage.sendMessage({
1335 type: "subscriptions.listen", 1352 type: "subscriptions.listen",
1336 filter: ["added", "disabled", "homepage", "lastDownload", "removed", 1353 filter: ["added", "disabled", "homepage", "lastDownload", "removed",
1337 "title", "downloadStatus", "downloading"] 1354 "title", "downloadStatus", "downloading"]
1338 }); 1355 });
1339 1356
1340 window.addEventListener("DOMContentLoaded", onDOMLoaded, false); 1357 window.addEventListener("DOMContentLoaded", onDOMLoaded, false);
1341 window.addEventListener("hashchange", onHashChange, false); 1358 window.addEventListener("hashchange", onHashChange, false);
1342 } 1359 }
OLDNEW
« no previous file with comments | « new-options.html ('k') | skin/icons/attention.svg » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld