Mercurial > xmpp-account-manager
diff avatar.js @ 13:8724e28ccbd7
Improve styling.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Sat, 22 Dec 2018 18:07:00 +0100 |
parents | aedf80eefc19 |
children | 3eed9fe0bd7c |
line wrap: on
line diff
--- a/avatar.js +++ b/avatar.js @@ -112,7 +112,7 @@ function initAvatar(connection) { function onAvatarDataUpload(iq) { console.log('Avatar successfully uploaded!', iq); - avatar_change.disabled = true; + avatar_change.hidden = true; avatar_size.innerHTML = ''; spinner_img.hidden = true; } @@ -151,7 +151,7 @@ function initAvatar(connection) { .map(b => b.toString(16).padStart(2, "0")) .join("")); avatar_data.id = sha1; - avatar_change.disabled = false; + avatar_change.hidden = false; } sha1_reader.readAsArrayBuffer(file); });