Commit f2feb287 authored by binji@chromium.org's avatar binji@chromium.org

Fix for sync setup UI when user is already logged in.

Every time the dialog is loaded, the read-only email address would be appended
to the span.

BUG=84665
TEST=manual


Review URL: http://codereview.chromium.org/7054062

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@88404 0039d316-1c4b-4281-b951-d872f2087c98
parent 2f265ecd
...@@ -54,8 +54,9 @@ ...@@ -54,8 +54,9 @@
<td> <td>
<input id="gaia-email" type="text" name="email" <input id="gaia-email" type="text" name="email"
size="18" value="" size="18" value=""
class="reset-enabled reset-value"> class="reset-enabled reset-shown reset-value">
<span id="email-readonly" hidden></span> <span id="email-readonly" class="reset-hidden"
hidden></span>
</td> </td>
</tr> </tr>
<tr id="access-code-label-row" <tr id="access-code-label-row"
......
...@@ -581,10 +581,10 @@ cr.define('options', function() { ...@@ -581,10 +581,10 @@ cr.define('options', function() {
} }
if (!args.editable_user) { if (!args.editable_user) {
email.style.display = 'none'; email.hidden = true;
var span = document.getElementById('email-readonly'); var span = $('email-readonly');
span.appendChild(document.createTextNode(email.value)); span.textContent = email.value;
span.style.display = 'inline'; span.hidden = false;
$('create-account-div').hidden = true; $('create-account-div').hidden = true;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment