aboutsummaryrefslogtreecommitdiffstats
path: root/view/js/mod_zchannel.js
blob: 9f85295d7865c4fc75ce6d69112b6801a6bbe01a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
	$(document).ready(function() {
		$("#zchannel-name").blur(function() {
			var zreg_name = $("#zchannel-name").val();
			$.get("zchannel/autofill.json?f=&name=" + encodeURIComponent(zreg_name),function(data) {
				$("#zchannel-nickname").val(data);
				zFormError("#zchannel-name-feedback",data.error);
			});
		});
		$("#zchannel-nickname").blur(function() {
			var zreg_nick = $("#zchannel-nickname").val();
			$.get("zchannel/checkaddr.json?f=&nick=" + encodeURIComponent(zreg_nick),function(data) {
				$("#zchannel-nickname").val(data);
				zFormError("#zchannel-nickname-feedback",data.error);
			});
		});

	});