Fixed a pair of js errors
This commit is contained in:
parent
9dda4271ee
commit
0eb729a7ce
|
@ -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();
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue