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

Side by Side Diff: options.js

Issue 6000668259123200: Remove ext.browserAction.show/hide (Closed)
Patch Set: Created Dec. 17, 2013, 3:31 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 | « options.html ('k') | safari/background.js » ('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 <http://adblockplus.org/>, 2 * This file is part of Adblock Plus <http://adblockplus.org/>,
3 * Copyright (C) 2006-2013 Eyeo GmbH 3 * Copyright (C) 2006-2013 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 FilterNotifier.addListener(onFilterChange); 62 FilterNotifier.addListener(onFilterChange);
63 63
64 // Display jQuery UI elements 64 // Display jQuery UI elements
65 $("#tabs").tabs(); 65 $("#tabs").tabs();
66 $("button").button(); 66 $("button").button();
67 $(".refreshButton").button("option", "icons", {primary: "ui-icon-refresh"}); 67 $(".refreshButton").button("option", "icons", {primary: "ui-icon-refresh"});
68 $(".addButton").button("option", "icons", {primary: "ui-icon-plus"}); 68 $(".addButton").button("option", "icons", {primary: "ui-icon-plus"});
69 $(".removeButton").button("option", "icons", {primary: "ui-icon-minus"}); 69 $(".removeButton").button("option", "icons", {primary: "ui-icon-minus"});
70 70
71 // Popuplate option checkboxes 71 // Popuplate option checkboxes
72 initCheckbox("shouldShowIcon");
73 initCheckbox("shouldShowBlockElementMenu"); 72 initCheckbox("shouldShowBlockElementMenu");
74 initCheckbox("hidePlaceholders"); 73 initCheckbox("hidePlaceholders");
75 74
76 ext.onMessage.addListener(onMessage); 75 ext.onMessage.addListener(onMessage);
77 76
78 // Load recommended subscriptions 77 // Load recommended subscriptions
79 loadRecommendations(); 78 loadRecommendations();
80 79
81 // Show user's filters 80 // Show user's filters
82 reloadFilters(); 81 reloadFilters();
(...skipping 564 matching lines...) Expand 10 before | Expand all | Expand 10 after
647 links[i].href = arguments[i + 1]; 646 links[i].href = arguments[i + 1];
648 links[i].setAttribute("target", "_blank"); 647 links[i].setAttribute("target", "_blank");
649 } 648 }
650 else if (typeof arguments[i + 1] == "function") 649 else if (typeof arguments[i + 1] == "function")
651 { 650 {
652 links[i].href = "javascript:void(0);"; 651 links[i].href = "javascript:void(0);";
653 links[i].addEventListener("click", arguments[i + 1], false); 652 links[i].addEventListener("click", arguments[i + 1], false);
654 } 653 }
655 } 654 }
656 } 655 }
OLDNEW
« no previous file with comments | « options.html ('k') | safari/background.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld