| OLD | NEW | 
|---|
| 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-2015 Eyeo GmbH | 3  * Copyright (C) 2006-2015 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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 148         if (isBlocked) | 148         if (isBlocked) | 
| 149           link.removeEventListener("click", onSocialLinkClick, false); | 149           link.removeEventListener("click", onSocialLinkClick, false); | 
| 150         else | 150         else | 
| 151           link.addEventListener("click", onSocialLinkClick, false); | 151           link.addEventListener("click", onSocialLinkClick, false); | 
| 152       }); | 152       }); | 
| 153     }); | 153     }); | 
| 154   } | 154   } | 
| 155 | 155 | 
| 156   function onSocialLinkClick(event) | 156   function onSocialLinkClick(event) | 
| 157   { | 157   { | 
|  | 158     if (window.matchMedia("(max-width: 970px)").matches) | 
|  | 159       return; | 
|  | 160 | 
| 158     event.preventDefault(); | 161     event.preventDefault(); | 
| 159 | 162 | 
| 160     getDocLink(event.target.id, function(link) | 163     getDocLink(event.target.id, function(link) | 
| 161     { | 164     { | 
| 162       openSharePopup(link); | 165       openSharePopup(link); | 
| 163     }); | 166     }); | 
| 164   } | 167   } | 
| 165 | 168 | 
| 166   function setLinks(id) | 169   function setLinks(id) | 
| 167   { | 170   { | 
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 216   { | 219   { | 
| 217     var button = E("toggle-" + feature); | 220     var button = E("toggle-" + feature); | 
| 218     if (isEnabled) | 221     if (isEnabled) | 
| 219       button.classList.remove("off"); | 222       button.classList.remove("off"); | 
| 220     else | 223     else | 
| 221       button.classList.add("off"); | 224       button.classList.add("off"); | 
| 222   } | 225   } | 
| 223 | 226 | 
| 224   document.addEventListener("DOMContentLoaded", onDOMLoaded, false); | 227   document.addEventListener("DOMContentLoaded", onDOMLoaded, false); | 
| 225 })(); | 228 })(); | 
| OLD | NEW | 
|---|