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

Delta Between Two Patch Sets: options.js

Issue 16067002: Added Safari Support (Closed)
Left Patch Set: Created Oct. 21, 2013, 8:11 p.m.
Right Patch Set: Bugfixes Created Nov. 15, 2013, 8:58 a.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
« no previous file with change/comment | « options.html ('k') | popup.html » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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-2013 Eyeo GmbH 3 * Copyright (C) 2006-2013 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 ext.onMessage.addListener(onMessage); 74 ext.onMessage.addListener(onMessage);
75 75
76 // Load recommended subscriptions 76 // Load recommended subscriptions
77 loadRecommendations(); 77 loadRecommendations();
78 78
79 // Show user's filters 79 // Show user's filters
80 reloadFilters(); 80 reloadFilters();
81 } 81 }
82 $(loadOptions); 82 $(loadOptions);
83 83
84 function onMessage(msg) { 84 function onMessage(msg)
85 switch (msg.type) { 85 {
86 switch (msg.type)
87 {
86 case "add-subscription": 88 case "add-subscription":
87 startSubscriptionSelection(msg.title, msg.url); 89 startSubscriptionSelection(msg.title, msg.url);
88 break; 90 break;
89 default: 91 default:
90 console.log("got unexpected message: " + msg.type); 92 console.log("got unexpected message: " + msg.type);
91 } 93 }
92 }; 94 };
93 95
94 // Reloads the displayed subscriptions and filters 96 // Reloads the displayed subscriptions and filters
95 function reloadFilters() 97 function reloadFilters()
(...skipping 547 matching lines...) Expand 10 before | Expand all | Expand 10 after
643 links[i].href = arguments[i + 1]; 645 links[i].href = arguments[i + 1];
644 links[i].setAttribute("target", "_blank"); 646 links[i].setAttribute("target", "_blank");
645 } 647 }
646 else if (typeof arguments[i + 1] == "function") 648 else if (typeof arguments[i + 1] == "function")
647 { 649 {
648 links[i].href = "javascript:void(0);"; 650 links[i].href = "javascript:void(0);";
649 links[i].addEventListener("click", arguments[i + 1], false); 651 links[i].addEventListener("click", arguments[i + 1], false);
650 } 652 }
651 } 653 }
652 } 654 }
LEFTRIGHT

Powered by Google App Engine
This is Rietveld