| 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 1893 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1904 Notification.triggerQuestionListeners(notification.id, approved) | 1904 Notification.triggerQuestionListeners(notification.id, approved) |
| 1905 Notification.markAsShown(notification.id); | 1905 Notification.markAsShown(notification.id); |
| 1906 } | 1906 } |
| 1907 window.document.getElementById("abp-notification-yes").onclick = buttonHan
dler.bind(null, true); | 1907 window.document.getElementById("abp-notification-yes").onclick = buttonHan
dler.bind(null, true); |
| 1908 window.document.getElementById("abp-notification-no").onclick = buttonHand
ler.bind(null, false); | 1908 window.document.getElementById("abp-notification-no").onclick = buttonHand
ler.bind(null, false); |
| 1909 } | 1909 } |
| 1910 else | 1910 else |
| 1911 Notification.markAsShown(notification.id); | 1911 Notification.markAsShown(notification.id); |
| 1912 | 1912 |
| 1913 panel.setAttribute("class", "abp-" + notification.type); | 1913 panel.setAttribute("class", "abp-" + notification.type); |
| 1914 panel.setAttribute("noautohide", notification.type === "question"); | 1914 panel.setAttribute("noautohide", true); |
| 1915 panel.openPopup(button, "bottomcenter topcenter", 0, 0, false, false, null); | 1915 panel.openPopup(button, "bottomcenter topcenter", 0, 0, false, false, null); |
| 1916 } | 1916 } |
| 1917 }; | 1917 }; |
| 1918 UI.onPopupShowing = UI.onPopupShowing.bind(UI); | 1918 UI.onPopupShowing = UI.onPopupShowing.bind(UI); |
| 1919 UI.onKeyPress = UI.onKeyPress.bind(UI); | 1919 UI.onKeyPress = UI.onKeyPress.bind(UI); |
| 1920 UI.onIconClick = UI.onIconClick.bind(UI); | 1920 UI.onIconClick = UI.onIconClick.bind(UI); |
| 1921 UI.init(); | 1921 UI.init(); |
| 1922 | 1922 |
| 1923 /** | 1923 /** |
| 1924 * List of event handers to be registered for each window. For each event | 1924 * List of event handers to be registered for each window. For each event |
| (...skipping 16 matching lines...) Expand all Loading... |
| 1941 ["abp-command-contribute-hide", "command", UI.hideContributeButton.bind(UI)], | 1941 ["abp-command-contribute-hide", "command", UI.hideContributeButton.bind(UI)], |
| 1942 ["abp-command-toggleshownotifications", "command", Notification.toggleIgnoreCa
tegory.bind(Notification, "*", null)] | 1942 ["abp-command-toggleshownotifications", "command", Notification.toggleIgnoreCa
tegory.bind(Notification, "*", null)] |
| 1943 ]; | 1943 ]; |
| 1944 | 1944 |
| 1945 onShutdown.add(function() | 1945 onShutdown.add(function() |
| 1946 { | 1946 { |
| 1947 for (let window of UI.applicationWindows) | 1947 for (let window of UI.applicationWindows) |
| 1948 if (UI.isBottombarOpen(window)) | 1948 if (UI.isBottombarOpen(window)) |
| 1949 UI.toggleBottombar(window); | 1949 UI.toggleBottombar(window); |
| 1950 }); | 1950 }); |
| OLD | NEW |