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

Side by Side Diff: desktop-options.js

Issue 29626565: Issue 6115 - Refactored icon classes (Closed)
Patch Set: Created Dec. 11, 2017, 12:14 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 | « desktop-options.html ('k') | skin/desktop-options.css » ('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 1379 matching lines...) Expand 10 before | Expand all | Expand 10 after
1390 } 1390 }
1391 1391
1392 function updateTooltips() 1392 function updateTooltips()
1393 { 1393 {
1394 let anchors = document.querySelectorAll(":not(.tooltip) > [data-tooltip]"); 1394 let anchors = document.querySelectorAll(":not(.tooltip) > [data-tooltip]");
1395 for (let anchor of anchors) 1395 for (let anchor of anchors)
1396 { 1396 {
1397 let id = anchor.getAttribute("data-tooltip"); 1397 let id = anchor.getAttribute("data-tooltip");
1398 1398
1399 let wrapper = document.createElement("div"); 1399 let wrapper = document.createElement("div");
1400 wrapper.className = "tooltip"; 1400 wrapper.className = "icon tooltip";
1401 anchor.parentNode.replaceChild(wrapper, anchor); 1401 anchor.parentNode.replaceChild(wrapper, anchor);
1402 wrapper.appendChild(anchor); 1402 wrapper.appendChild(anchor);
1403 1403
1404 let tooltip = document.createElement("div"); 1404 let tooltip = document.createElement("div");
1405 tooltip.setAttribute("role", "tooltip"); 1405 tooltip.setAttribute("role", "tooltip");
1406 1406
1407 let paragraph = document.createElement("p"); 1407 let paragraph = document.createElement("p");
1408 paragraph.textContent = getMessage(id); 1408 paragraph.textContent = getMessage(id);
1409 tooltip.appendChild(paragraph); 1409 tooltip.appendChild(paragraph);
1410 1410
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
1459 }); 1459 });
1460 browser.runtime.sendMessage({ 1460 browser.runtime.sendMessage({
1461 type: "subscriptions.listen", 1461 type: "subscriptions.listen",
1462 filter: ["added", "disabled", "homepage", "lastDownload", "removed", 1462 filter: ["added", "disabled", "homepage", "lastDownload", "removed",
1463 "title", "downloadStatus", "downloading"] 1463 "title", "downloadStatus", "downloading"]
1464 }); 1464 });
1465 1465
1466 window.addEventListener("DOMContentLoaded", onDOMLoaded, false); 1466 window.addEventListener("DOMContentLoaded", onDOMLoaded, false);
1467 window.addEventListener("hashchange", onHashChange, false); 1467 window.addEventListener("hashchange", onHashChange, false);
1468 } 1468 }
OLDNEW
« no previous file with comments | « desktop-options.html ('k') | skin/desktop-options.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld