aboutsummaryrefslogtreecommitdiffstats
path: root/view/js/mod_register.js
diff options
context:
space:
mode:
Diffstat (limited to 'view/js/mod_register.js')
-rw-r--r--view/js/mod_register.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/view/js/mod_register.js b/view/js/mod_register.js
index 7dbc2aca8..1fc5ad2fa 100644
--- a/view/js/mod_register.js
+++ b/view/js/mod_register.js
@@ -68,6 +68,9 @@ $(document).ready(function() {
});
$('#id_name').blur(function() {
+ if($('#id_name').val() == '')
+ return;
+
$('#name-spinner').fadeIn();
var zreg_name = $('#id_name').val();
$.get('new_channel/autofill.json?f=&name=' + encodeURIComponent(zreg_name),function(data) {
@@ -81,6 +84,9 @@ $(document).ready(function() {
});
$('#id_nickname').blur(function() {
+ if($('#id_name').val() == '')
+ return;
+
$('#nick-spinner').fadeIn();
$('#nick-hub').fadeOut();
var zreg_nick = $('#id_nickname').val();