OLD | NEW |
1 /* | 1 /* |
2 * This file is part of the Adblock Plus extension, | 2 * This file is part of the Adblock Plus extension, |
3 * Copyright (C) 2006-2012 Eyeo GmbH | 3 * Copyright (C) 2006-2012 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 Loading... |
62 // Display jQuery UI elements | 62 // Display jQuery UI elements |
63 $("#tabs").tabs(); | 63 $("#tabs").tabs(); |
64 $("button").button(); | 64 $("button").button(); |
65 $(".refreshButton").button("option", "icons", {primary: "ui-icon-refresh"}); | 65 $(".refreshButton").button("option", "icons", {primary: "ui-icon-refresh"}); |
66 $(".addButton").button("option", "icons", {primary: "ui-icon-plus"}); | 66 $(".addButton").button("option", "icons", {primary: "ui-icon-plus"}); |
67 $(".removeButton").button("option", "icons", {primary: "ui-icon-minus"}); | 67 $(".removeButton").button("option", "icons", {primary: "ui-icon-minus"}); |
68 | 68 |
69 // Popuplate option checkboxes | 69 // Popuplate option checkboxes |
70 initCheckbox("shouldShowIcon"); | 70 initCheckbox("shouldShowIcon"); |
71 initCheckbox("shouldShowBlockElementMenu"); | 71 initCheckbox("shouldShowBlockElementMenu"); |
72 initCheckbox("disableInlineTextAds"); | |
73 initCheckbox("hidePlaceholders"); | 72 initCheckbox("hidePlaceholders"); |
74 | 73 |
75 // Load recommended subscriptions | 74 // Load recommended subscriptions |
76 loadRecommendations(); | 75 loadRecommendations(); |
77 | 76 |
78 // Show user's filters | 77 // Show user's filters |
79 reloadFilters(); | 78 reloadFilters(); |
80 } | 79 } |
81 $(loadOptions); | 80 $(loadOptions); |
82 | 81 |
(...skipping 527 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
610 if (subscription.disabled == !enabled.checked) | 609 if (subscription.disabled == !enabled.checked) |
611 return; | 610 return; |
612 | 611 |
613 subscription.disabled = !enabled.checked; | 612 subscription.disabled = !enabled.checked; |
614 }, false); | 613 }, false); |
615 | 614 |
616 updateSubscriptionInfo(element); | 615 updateSubscriptionInfo(element); |
617 | 616 |
618 document.getElementById("filterLists").appendChild(element); | 617 document.getElementById("filterLists").appendChild(element); |
619 } | 618 } |
OLD | NEW |