diff options
author | Go MAEDA <maeda@farend.jp> | 2019-08-13 23:28:36 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2019-08-13 23:28:36 +0000 |
commit | 3bf7956ce00fd60f8bfa84c47b67fa2f52bcff6f (patch) | |
tree | 375b148d8c9e694a79e584545889eb0e325c1061 /app/views/users | |
parent | e2a00d2dc81213d1d7f546a7cc3093f362f1a9df (diff) | |
download | redmine-3bf7956ce00fd60f8bfa84c47b67fa2f52bcff6f.tar.gz redmine-3bf7956ce00fd60f8bfa84c47b67fa2f52bcff6f.zip |
Fix jQuery.fn.attr('selected') might use property instead of attribute (#31894, #31196).
Patch by Marius BALTEANU.
git-svn-id: http://svn.redmine.org/redmine/trunk@18365 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/users')
-rw-r--r-- | app/views/users/new.html.erb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/users/new.html.erb b/app/views/users/new.html.erb index 088f272e4..f65bea1f2 100644 --- a/app/views/users/new.html.erb +++ b/app/views/users/new.html.erb @@ -20,7 +20,7 @@ $('input#user_mail').val(ui.item.mail); $('select#user_auth_source_id option').each(function(){ if ($(this).attr('value') == ui.item.auth_source_id) { - $(this).attr('selected', true); + $(this).prop('selected', true); $('select#user_auth_source_id').trigger('change'); } }); |