aboutsummaryrefslogtreecommitdiffstats
path: root/view/js/mod_new_channel.js
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2016-02-19 22:28:21 +0100
committerMario Vavti <mario@mariovavti.com>2016-02-19 22:28:21 +0100
commit02e82e496e3ec8dbd8264248ad8550dd5e335cba (patch)
treeba88a936dff8de1333a14c5c265e0314c0a12e41 /view/js/mod_new_channel.js
parent5a7b994e59306519574ce7aaa004f08d7d47ee05 (diff)
downloadvolse-hubzilla-02e82e496e3ec8dbd8264248ad8550dd5e335cba.tar.gz
volse-hubzilla-02e82e496e3ec8dbd8264248ad8550dd5e335cba.tar.bz2
volse-hubzilla-02e82e496e3ec8dbd8264248ad8550dd5e335cba.zip
pimp up mod new_channel
Diffstat (limited to 'view/js/mod_new_channel.js')
-rw-r--r--view/js/mod_new_channel.js13
1 files changed, 7 insertions, 6 deletions
diff --git a/view/js/mod_new_channel.js b/view/js/mod_new_channel.js
index c4d5408f2..58573f736 100644
--- a/view/js/mod_new_channel.js
+++ b/view/js/mod_new_channel.js
@@ -1,19 +1,20 @@
$(document).ready(function() {
// $("#id_permissions_role").sSelect();
- $("#newchannel-name").blur(function() {
+ $("#id_name").blur(function() {
$("#name-spinner").spin('small');
- var zreg_name = $("#newchannel-name").val();
+ var zreg_name = $("#id_name").val();
$.get("new_channel/autofill.json?f=&name=" + encodeURIComponent(zreg_name),function(data) {
- $("#newchannel-nickname").val(data);
+ $("#id_nickname").val(data);
zFormError("#newchannel-name-feedback",data.error);
$("#name-spinner").spin(false);
});
});
- $("#newchannel-nickname").blur(function() {
+
+ $("#id_nickname").blur(function() {
$("#nick-spinner").spin('small');
- var zreg_nick = $("#newchannel-nickname").val();
+ var zreg_nick = $("#id_nickname").val();
$.get("new_channel/checkaddr.json?f=&nick=" + encodeURIComponent(zreg_nick),function(data) {
- $("#newchannel-nickname").val(data);
+ $("#id_nickname").val(data);
zFormError("#newchannel-nickname-feedback",data.error);
$("#nick-spinner").spin(false);
});