aboutsummaryrefslogtreecommitdiffstats
path: root/view/js
diff options
context:
space:
mode:
authormrjive <mrjive@mrjive.it>2016-01-14 09:30:50 +0100
committermrjive <mrjive@mrjive.it>2016-01-14 09:30:50 +0100
commit5c937c5642e87750b55e15c9d9c1b863e5d5cfc1 (patch)
tree5ef2c09452b4d511f895d0fa3164fb614307f8c4 /view/js
parent3206a46a9297dcbdc56c25512767dfb5bf66837b (diff)
parente500a08f152d641f60c7146c6a290042bdd37a73 (diff)
downloadvolse-hubzilla-5c937c5642e87750b55e15c9d9c1b863e5d5cfc1.tar.gz
volse-hubzilla-5c937c5642e87750b55e15c9d9c1b863e5d5cfc1.tar.bz2
volse-hubzilla-5c937c5642e87750b55e15c9d9c1b863e5d5cfc1.zip
Merge pull request #15 from redmatrix/master
updating from original codebase
Diffstat (limited to 'view/js')
-rw-r--r--view/js/mod_register.js21
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