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

Delta Between Two Patch Sets: chrome/content/ui/popup.js

Issue 5294633391226880: issue 1435 - Port popup.html from Chrome/Safari/Opera to Firefox (Closed)
Left Patch Set: Created Oct. 16, 2014, 11:07 a.m.
Right Patch Set: Created Oct. 27, 2014, 9:40 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
LEFTRIGHT
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
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details. 12 * GNU General Public License for more details.
13 * 13 *
14 * You should have received a copy of the GNU General Public License 14 * You should have received a copy of the GNU General Public License
15 * along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>. 15 * along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>.
16 */ 16 */
17 17
18 var backgroundPage = ext.backgroundPage.getWindow(); 18 var backgroundPage = ext.backgroundPage.getWindow();
19 window["openOptions"] = backgroundPage["openOptions"]; 19 var openOptions = backgroundPage.openOptions;
20 var page = null; 20 var page = null;
21 21
22 function init() 22 function init()
23 { 23 {
24 ext.pages.query({active: true, lastFocusedWindow: true}, function(pages) 24 ext.pages.query({active: true, lastFocusedWindow: true}, function(pages)
25 { 25 {
26 page = pages[0]; 26 page = pages[0];
27 if (page) 27 if (page)
28 { 28 {
29 document.body.classList.toggle("local", !/^https?:\/\//.test(page.url)); 29 document.body.classList.toggle("local", !/^https?:\/\//.test(page.url));
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 function cancelClickHide() 101 function cancelClickHide()
102 { 102 {
103 if (activateClickHide.timeout) 103 if (activateClickHide.timeout)
104 { 104 {
105 window.clearTimeout(activateClickHide.timeout); 105 window.clearTimeout(activateClickHide.timeout);
106 activateClickHide.timeout = null; 106 activateClickHide.timeout = null;
107 } 107 }
108 document.body.classList.remove("clickhide-active"); 108 document.body.classList.remove("clickhide-active");
109 ext.activateClickHide(false); 109 ext.activateClickHide(false);
110 } 110 }
LEFTRIGHT

Powered by Google App Engine
This is Rietveld