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

Side by Side Diff: options.js

Issue 6201561285918720: Issue 1671 - Removed "Hide placeholders" option from the UI (Chrome/Opera/Safari) (Closed)
Patch Set: Created Dec. 8, 2014, 6:13 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') | 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 <http://adblockplus.org/>, 2 * This file is part of Adblock Plus <http://adblockplus.org/>,
3 * Copyright (C) 2006-2014 Eyeo GmbH 3 * Copyright (C) 2006-2014 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 69
70 // Display jQuery UI elements 70 // Display jQuery UI elements
71 $("#tabs").tabs(); 71 $("#tabs").tabs();
72 $("button").button(); 72 $("button").button();
73 $(".refreshButton").button("option", "icons", {primary: "ui-icon-refresh"}); 73 $(".refreshButton").button("option", "icons", {primary: "ui-icon-refresh"});
74 $(".addButton").button("option", "icons", {primary: "ui-icon-plus"}); 74 $(".addButton").button("option", "icons", {primary: "ui-icon-plus"});
75 $(".removeButton").button("option", "icons", {primary: "ui-icon-minus"}); 75 $(".removeButton").button("option", "icons", {primary: "ui-icon-minus"});
76 76
77 // Popuplate option checkboxes 77 // Popuplate option checkboxes
78 initCheckbox("shouldShowBlockElementMenu"); 78 initCheckbox("shouldShowBlockElementMenu");
79 initCheckbox("hidePlaceholders");
80 79
81 ext.onMessage.addListener(onMessage); 80 ext.onMessage.addListener(onMessage);
82 81
83 // Load recommended subscriptions 82 // Load recommended subscriptions
84 loadRecommendations(); 83 loadRecommendations();
85 84
86 // Show user's filters 85 // Show user's filters
87 reloadFilters(); 86 reloadFilters();
88 } 87 }
89 $(loadOptions); 88 $(loadOptions);
(...skipping 558 matching lines...) Expand 10 before | Expand all | Expand 10 after
648 links[i].href = arguments[i + 1]; 647 links[i].href = arguments[i + 1];
649 links[i].setAttribute("target", "_blank"); 648 links[i].setAttribute("target", "_blank");
650 } 649 }
651 else if (typeof arguments[i + 1] == "function") 650 else if (typeof arguments[i + 1] == "function")
652 { 651 {
653 links[i].href = "javascript:void(0);"; 652 links[i].href = "javascript:void(0);";
654 links[i].addEventListener("click", arguments[i + 1], false); 653 links[i].addEventListener("click", arguments[i + 1], false);
655 } 654 }
656 } 655 }
657 } 656 }
OLDNEW
« no previous file with comments | « options.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld