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

Side by Side Diff: chrome/content/survey.js

Issue 8382011: Applied changes from emailed code review (Closed)
Patch Set: Created Sept. 18, 2012, 2:06 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
OLDNEW
1 /* 1 /*
2 * This Source Code is subject to the terms of the Mozilla Public License 2 * This Source Code is subject to the terms of the Mozilla Public License
3 * version 2.0 (the "License"). You can obtain a copy of the License at 3 * version 2.0 (the "License"). You can obtain a copy of the License at
4 * http://mozilla.org/MPL/2.0/. 4 * http://mozilla.org/MPL/2.0/.
5 */ 5 */
6 6
7 window.addEventListener("DOMContentLoaded", function(event) 7 window.addEventListener("DOMContentLoaded", function(event)
8 { 8 {
9 let stringBundle = require("survey").getSurveyDialogTexts();
10
11 E("survey").setAttribute("title", stringBundle.title);
12 E("icon").setAttribute("src", require("info").addonRoot + "icon64.png"); 9 E("icon").setAttribute("src", require("info").addonRoot + "icon64.png");
13 E("question").textContent = stringBundle.question;
14 E("note").textContent = stringBundle.note;
15 E("accept").textContent = stringBundle.accept;
16 E("decline").textContent = stringBundle.decline;
17 }, false); 10 }, false);
18 11
19 function onAccept() 12 function onAccept()
20 { 13 {
21 require("survey").openSurvey(); 14 require("survey").openSurvey();
22 } 15 }
23 16
24 function onCancel() 17 function onCancel()
25 { 18 {
26 } 19 }
OLDNEW

Powered by Google App Engine
This is Rietveld