# HG changeset patch # User Emmanuel Gil Peyrot # Date 1590262629 -7200 # Node ID 9ada1963558c3a0884ed0a05d30e59028bed4361 # Parent 9b612be4dd0b471d59571bee99073f9a44cc3722 Disable the avatar access_model in more cases. diff --git a/nickname.js b/nickname.js --- a/nickname.js +++ b/nickname.js @@ -53,6 +53,7 @@ function initNickname(connection) { { console.log('Failed to retrieve nickname: ' + parseErrorIq(iq)); hideSpinner(spinner_img); + nick_access.disabled = true; } nick_input.addEventListener('change', function (evt) { @@ -75,6 +76,7 @@ function initNickname(connection) { } connection.sendIQ(iq, changed_callback, onNicknameChangeError); displaySpinner(spinner_img); + nick_access.disabled = true; }); function onNicknameChanged(action, result_iq) @@ -90,6 +92,7 @@ function initNickname(connection) { { console.log('onNicknameChangeError', iq); spinnerError(spinner_img); + nick_access.disabled = true; } nick_access.addEventListener('change', function (evt) {