diff options
author | friendica <info@friendica.com> | 2012-08-23 20:00:10 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-08-23 20:00:10 -0700 |
commit | 2456174cc905d2d0ae19d21c94fec2c5552322a8 (patch) | |
tree | 1e64335bad03cadb168d9cd88627e6a893459efb /view/js | |
parent | a9dabd8eb918436b57d9263ad3d635774455f28f (diff) | |
download | volse-hubzilla-2456174cc905d2d0ae19d21c94fec2c5552322a8.tar.gz volse-hubzilla-2456174cc905d2d0ae19d21c94fec2c5552322a8.tar.bz2 volse-hubzilla-2456174cc905d2d0ae19d21c94fec2c5552322a8.zip |
back to identity creation form
Diffstat (limited to 'view/js')
-rw-r--r-- | view/js/mod_zentity.js | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/view/js/mod_zentity.js b/view/js/mod_zentity.js new file mode 100644 index 000000000..ad78db7d4 --- /dev/null +++ b/view/js/mod_zentity.js @@ -0,0 +1,17 @@ + $(document).ready(function() { + $("#zentity-name").blur(function() { + var zreg_name = $("#zentity-name").val(); + $.get("zentity/autofill.json?f=&name=" + encodeURIComponent(zreg_name),function(data) { + $("#zentity-nickname").val(data); + zFormError("#zentity-name-feedback",data.error); + }); + }); + $("#zentity-nickname").blur(function() { + var zreg_nick = $("#zentity-nickname").val(); + $.get("zentity/checkaddr.json?f=&nick=" + encodeURIComponent(zreg_nick),function(data) { + $("#zentity-nickname").val(data); + zFormError("#zentity-nickname-feedback",data.error); + }); + }); + + }); |