diff --git a/pandora_console/godmode/setup/setup_auth.php b/pandora_console/godmode/setup/setup_auth.php index e5bbc6ddb2..17bef785d7 100644 --- a/pandora_console/godmode/setup/setup_auth.php +++ b/pandora_console/godmode/setup/setup_auth.php @@ -240,14 +240,14 @@ echo ''; return option.value; }); - // Add the auth select change event and perform it once - // for process the action on the section load - $('select#auth').change(show_selected_rows).change(); - // Add the click event and perform it once // for process the action on the section load $('input[name="autocreate_remote_users"]').change(show_autocreate_options).change(); + // Add the auth select change event and perform it once + // for process the action on the section load + $('select#auth').change(show_selected_rows).change(); + // Event callback for the auth select function show_selected_rows (event) { var auth_method = $(this).val(); @@ -261,7 +261,7 @@ echo ''; } // Hide all the auth methods (except mysql) - _.each(auth_methods, function(value, key) { + $.each(auth_methods, function(index, value) { if (value !== 'mysql') $('tr.' + value).hide(); });