aboutsummaryrefslogtreecommitdiffstats
path: root/view/js/mod_new_channel.js
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2016-02-22 13:04:48 +0100
committerMario Vavti <mario@mariovavti.com>2016-02-22 13:04:48 +0100
commitdd6e3d873d2ff04cb2549530fa838ad58b06cdbc (patch)
tree0264f166d307c3b5422f4666f4f124e1ff59140c /view/js/mod_new_channel.js
parentf9b092c6194fe2a2812cb0ae687e19b1f5680c98 (diff)
downloadvolse-hubzilla-dd6e3d873d2ff04cb2549530fa838ad58b06cdbc.tar.gz
volse-hubzilla-dd6e3d873d2ff04cb2549530fa838ad58b06cdbc.tar.bz2
volse-hubzilla-dd6e3d873d2ff04cb2549530fa838ad58b06cdbc.zip
some work on mod/register
Diffstat (limited to 'view/js/mod_new_channel.js')
-rw-r--r--view/js/mod_new_channel.js10
1 files changed, 8 insertions, 2 deletions
diff --git a/view/js/mod_new_channel.js b/view/js/mod_new_channel.js
index 58573f736..17b354a4b 100644
--- a/view/js/mod_new_channel.js
+++ b/view/js/mod_new_channel.js
@@ -5,7 +5,10 @@
var zreg_name = $("#id_name").val();
$.get("new_channel/autofill.json?f=&name=" + encodeURIComponent(zreg_name),function(data) {
$("#id_nickname").val(data);
- zFormError("#newchannel-name-feedback",data.error);
+ if(data.error) {
+ $("#help_name").html("");
+ zFormError("#help_name",data.error);
+ }
$("#name-spinner").spin(false);
});
});
@@ -15,7 +18,10 @@
var zreg_nick = $("#id_nickname").val();
$.get("new_channel/checkaddr.json?f=&nick=" + encodeURIComponent(zreg_nick),function(data) {
$("#id_nickname").val(data);
- zFormError("#newchannel-nickname-feedback",data.error);
+ if(data.error) {
+ $("#help_nickname").html("");
+ zFormError("#help_nickname",data.error);
+ }
$("#nick-spinner").spin(false);
});
});