From 15fb41f74a1996d906328e5bd078bd23b19352f2 Mon Sep 17 00:00:00 2001 From: Julio Montoya Date: Fri, 8 Apr 2011 11:59:12 +0200 Subject: [PATCH] Avoiding js error in the user_list --- main/admin/user_list.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main/admin/user_list.php b/main/admin/user_list.php index 100d625ec2..5ac290095d 100755 --- a/main/admin/user_list.php +++ b/main/admin/user_list.php @@ -94,9 +94,11 @@ $(document).ready(function() { var select_val = $("#input_select_extra_data").val(); if ( document.getElementById(\'extra_data_text\')) { + if (select_val != 0) { document.getElementById(\'extra_data_text\').style.display="block"; - document.getElementById(\'input_extra_text\').value = ""; + if (document.getElementById(\'input_extra_text\')) + document.getElementById(\'input_extra_text\').value = ""; } else { document.getElementById(\'extra_data_text\').style.display="none"; }