зеркало из https://github.com/mozilla/gecko-dev.git
fix some minor wizard bugs
This commit is contained in:
Родитель
a7be9647e8
Коммит
4f059c48b7
|
@ -41,7 +41,7 @@ function setDivTextFromForm(divid, value) {
|
|||
// hide the .label if the div has no value
|
||||
if (!value || value =="") {
|
||||
var div = document.getElementById(divid + ".label");
|
||||
div.style.display="none";
|
||||
div.setAttribute("hidden","true");
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -102,14 +102,7 @@ function checkForDomain()
|
|||
currentDomain = accountData.domain;
|
||||
|
||||
var postEmailText = document.getElementById("postEmailText");
|
||||
if (postEmailText) {
|
||||
if (postEmailText.firstChild)
|
||||
postEmailText.removeChild(postEmailText.firstChild);
|
||||
|
||||
var domainText = "@" + currentDomain;
|
||||
postEmailText.appendChild(document.createTextNode(domainText));
|
||||
}
|
||||
|
||||
postEmailText.setAttribute("value", "@" + currentDomain);
|
||||
}
|
||||
|
||||
function checkForFullName() {
|
||||
|
|
Загрузка…
Ссылка в новой задаче