Fixed a pair of js errors

This commit is contained in:
Alejandro Gallardo Escobar 2015-08-13 12:10:32 +02:00
parent 9dda4271ee
commit 0eb729a7ce
1 changed files with 5 additions and 5 deletions

View File

@ -240,14 +240,14 @@ echo '</form>';
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 '</form>';
}
// 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();
});