Mercurial > xmpp-account-manager
diff nickname.js @ 34:45bd945c5722
Change all blur events to change, prevents a stanza when no change occured.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Sun, 23 Dec 2018 20:31:02 +0100 |
parents | 3eed9fe0bd7c |
children | 084202870d76 |
line wrap: on
line diff
--- a/nickname.js +++ b/nickname.js @@ -27,7 +27,7 @@ function initNickname(connection) { hideSpinner(spinner_img); } - nick_input.addEventListener('blur', function (evt) { + nick_input.addEventListener('change', function (evt) { const iq = $iq({type: 'set'}) .c('pubsub', {xmlns: 'http://jabber.org/protocol/pubsub'}) .c('publish', {node: 'http://jabber.org/protocol/nick'})