blob: a3c1dd05c0d73ff55c6819b1c936bfca3c41a613 (
plain) (
tree)
|
|
$(document).ready(function() {
$("#newchannel-name").blur(function() {
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);
});
});
$("#newchannel-nickname").blur(function() {
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);
});
});
});
|