зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1201902 - Add new feedback link to Loop's panel menu. r=Standard8
This commit is contained in:
Родитель
d1e027ccae
Коммит
bbce650aa7
|
@ -244,7 +244,7 @@ loop.panel = (function(_, mozL10n) {
|
|||
*/
|
||||
handleSubmitFeedback: function(event) {
|
||||
event.preventDefault();
|
||||
loop.request("GetLoopPref", "feedback.formURL").then(function(helloFeedbackUrl) {
|
||||
loop.request("GetLoopPref", "feedback.manualFormURL").then(function(helloFeedbackUrl) {
|
||||
loop.request("OpenURL", helloFeedbackUrl);
|
||||
this.closeWindow();
|
||||
}.bind(this));
|
||||
|
|
|
@ -244,7 +244,7 @@ loop.panel = (function(_, mozL10n) {
|
|||
*/
|
||||
handleSubmitFeedback: function(event) {
|
||||
event.preventDefault();
|
||||
loop.request("GetLoopPref", "feedback.formURL").then(function(helloFeedbackUrl) {
|
||||
loop.request("GetLoopPref", "feedback.manualFormURL").then(function(helloFeedbackUrl) {
|
||||
loop.request("OpenURL", helloFeedbackUrl);
|
||||
this.closeWindow();
|
||||
}.bind(this));
|
||||
|
|
|
@ -501,7 +501,7 @@ describe("loop.panel", function() {
|
|||
feedbackUrl = "https://example.com";
|
||||
LoopMochaUtils.stubLoopRequest({
|
||||
GetLoopPref: function(pref) {
|
||||
if (pref === "feedback.formURL") {
|
||||
if (pref === "feedback.manualFormURL") {
|
||||
return feedbackUrl;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче