From 88f7c2041d74d82db5c84b45f30e1eb64dfcc216 Mon Sep 17 00:00:00 2001 From: Mario Date: Fri, 16 Apr 2021 18:13:20 +0000 Subject: register: add option to show all register entries --- view/js/mod_register.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'view/js') 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(); -- cgit v1.2.3