aboutsummaryrefslogblamecommitdiffstats
path: root/view/js/mod_zentity.js
blob: ad78db7d422f100fe5c4c40f32184658663caf22 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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);
			});
		});

	});