| Index: chrome/content/ui/sendReport.js |
| =================================================================== |
| --- a/chrome/content/ui/sendReport.js |
| +++ b/chrome/content/ui/sendReport.js |
| @@ -1323,13 +1323,19 @@ |
| function initScreenshotPage() |
| { |
| + document.documentElement.canAdvance = true; |
|
Wladimir Palant
2012/11/22 14:16:29
I am mostly sure that canAdvance = true is set aut
Andrey Novikov
2012/11/22 14:44:15
It stays disabled in my case when I press Back on
|
| + |
| E("progressBar").activeItem = E("screenshotHeader"); |
| } |
| function initCommentPage() |
| { |
| + document.documentElement.canAdvance = false; |
| + |
| E("progressBar").activeItem = E("commentPageHeader"); |
| + updateEmail(); |
|
Wladimir Palant
2012/11/22 14:16:29
This will already set the canAdvance property, I d
Andrey Novikov
2012/11/22 14:44:15
Done.
|
| + |
| screenshotDataSource.exportData(); |
| updateDataField(); |
| } |
| @@ -1379,8 +1385,27 @@ |
| function updateEmail() |
| { |
| removeReportElement("email"); |
| - appendElement(reportData.documentElement, "email", null, E("email").value.replace(/\@/g, " at ").replace(/\./g, " dot ")); |
| + |
| + let value = E("email").value; |
| + E("email").setAttribute("value", value); // https://bugzilla.mozilla.org/show_bug.cgi?id=111486 |
|
Wladimir Palant
2012/11/22 14:16:29
Please add a proper comment - the bug link is addi
Andrey Novikov
2012/11/22 14:44:15
Done.
|
| + appendElement(reportData.documentElement, "email", null, value); |
| updateDataField(); |
| + |
| + document.documentElement.canAdvance = /\S/.test(value); |
| +} |
| + |
| +function updateAnonymity(anonymous) |
| +{ |
| + if (anonymous) |
| + { |
| + E("email").value = ""; |
| + updateEmail(); |
| + } |
| + E("email").disabled = anonymous; |
| + E("emailLabel").disabled = anonymous; |
|
Wladimir Palant
2012/11/22 14:16:29
I don't think we ever disable labels.
Andrey Novikov
2012/11/22 14:44:15
It looks much more user friendly in UI, have a try
|
| + E("anonymityWarning").setAttribute("visible", anonymous); |
| + |
| + document.documentElement.canAdvance = anonymous; |
| } |
|
Wladimir Palant
2012/11/22 14:16:29
The interaction of these two functions is pretty c
Andrey Novikov
2012/11/22 14:44:15
It sends empty value in that case. Redesigned it.
|
| function updateExtensions(attach) |