| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |