diff options
author | Haakon Meland Eriksen <haakon.eriksen@far.no> | 2016-01-14 18:14:30 +0100 |
---|---|---|
committer | Haakon Meland Eriksen <haakon.eriksen@far.no> | 2016-01-14 18:14:30 +0100 |
commit | 72353bf0446901f1711cba7a2e50dbce9bd06227 (patch) | |
tree | 6b73f79bf7386e69e4941ff5a8b4c165830b1652 /view/js/mod_register.js | |
parent | 42433c0b4442f1a6b451324fe7f765b1b4c354b8 (diff) | |
parent | 9f9fdc1434b7283171f8d843f225228cdb322115 (diff) | |
download | volse-hubzilla-72353bf0446901f1711cba7a2e50dbce9bd06227.tar.gz volse-hubzilla-72353bf0446901f1711cba7a2e50dbce9bd06227.tar.bz2 volse-hubzilla-72353bf0446901f1711cba7a2e50dbce9bd06227.zip |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'view/js/mod_register.js')
-rw-r--r-- | view/js/mod_register.js | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/view/js/mod_register.js b/view/js/mod_register.js index 95bc7bbbb..8430b4655 100644 --- a/view/js/mod_register.js +++ b/view/js/mod_register.js @@ -26,4 +26,25 @@ $(document).ready(function() { zFormError("#register-password2-feedback", false); } }); + + + $("#newchannel-name").blur(function() { + $("#name-spinner").spin('small'); + var zreg_name = $("#newchannel-name").val(); + $.get("new_channel/autofill.json?f=&name=" + encodeURIComponent(zreg_name),function(data) { + $("#newchannel-nickname").val(data); + zFormError("#newchannel-name-feedback",data.error); + $("#name-spinner").spin(false); + }); + }); + $("#newchannel-nickname").blur(function() { + $("#nick-spinner").spin('small'); + var zreg_nick = $("#newchannel-nickname").val(); + $.get("new_channel/checkaddr.json?f=&nick=" + encodeURIComponent(zreg_nick),function(data) { + $("#newchannel-nickname").val(data); + zFormError("#newchannel-nickname-feedback",data.error); + $("#nick-spinner").spin(false); + }); + }); + });
\ No newline at end of file |