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

Side by Side Diff: lib/typoAppIntegration.js

Issue 9276041: Fixed: bogus access keys in typo correction message (Closed)
Patch Set: Created Jan. 29, 2013, 2:32 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 | « no previous file | lib/typoFixer.js » ('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 the Adblock Plus, 2 * This file is part of the Adblock Plus,
3 * Copyright (C) 2006-2012 Eyeo GmbH 3 * Copyright (C) 2006-2012 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 { 63 {
64 if (!Prefs.correctTyposAsked && !Prefs.correctTypos) 64 if (!Prefs.correctTyposAsked && !Prefs.correctTypos)
65 { 65 {
66 let {Utils} = require("utils"); 66 let {Utils} = require("utils");
67 let message = Utils.getString("typo_optin_message").replace(/\?1\?/, dom ain); 67 let message = Utils.getString("typo_optin_message").replace(/\?1\?/, dom ain);
68 let yes = Utils.getString("typo_optin_yes"); 68 let yes = Utils.getString("typo_optin_yes");
69 let no = Utils.getString("typo_optin_no"); 69 let no = Utils.getString("typo_optin_no");
70 let buttons = [ 70 let buttons = [
71 { 71 {
72 label: yes, 72 label: yes,
73 accessKey: null, 73 accessKey: "",
74 callback: function() 74 callback: function()
75 { 75 {
76 // Yes: Enable typo correction 76 // Yes: Enable typo correction
77 Prefs.correctTypos = true; 77 Prefs.correctTypos = true;
78 exports.loadURI(window, prefix + domain + suffix); 78 exports.loadURI(window, prefix + domain + suffix);
79 Prefs.correctTyposAsked = true; 79 Prefs.correctTyposAsked = true;
80 } 80 }
81 }, 81 },
82 { 82 {
83 label: no, 83 label: no,
84 accessKey: null, 84 accessKey: "",
85 callback: function() 85 callback: function()
86 { 86 {
87 // No: Do nothing 87 // No: Do nothing
88 Prefs.correctTyposAsked = true; 88 Prefs.correctTyposAsked = true;
89 } 89 }
90 } 90 }
91 ]; 91 ];
92 // We need to have persistence being set to 1 due to redirect which happ ens afterwards 92 // We need to have persistence being set to 1 due to redirect which happ ens afterwards
93 exports.openInfobar(window, "adblockplus-infobar-correct-typos-ask", mes sage, buttons, 1); 93 exports.openInfobar(window, "adblockplus-infobar-correct-typos-ask", mes sage, buttons, 1);
94 } 94 }
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
369 }; 369 };
370 370
371 break; 371 break;
372 } 372 }
373 default: 373 default:
374 { 374 {
375 exports.isKnownWindow = function(window) false; 375 exports.isKnownWindow = function(window) false;
376 break; 376 break;
377 } 377 }
378 } 378 }
OLDNEW
« no previous file with comments | « no previous file | lib/typoFixer.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld