Skip to content

Commit

Permalink
Replace removed jQuery api '.size()' to '.length'
Browse files Browse the repository at this point in the history
  • Loading branch information
sanak committed Aug 23, 2024
1 parent 1bb33d5 commit 395217b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/redmine_privacy/_issues_new_top_hook.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
$(document).on('submit',
'#issue-form.new_issue',
function(event){
var checked = $('#issue_is_private_wrap input:checked').size() == 1;
var checked = $('#issue_is_private_wrap input:checked').length == 1;
if(!(checked || confirm('<%= j l :text_privacy_confirm_public %>'))) {
$(this).attr('data-submitted', null); // to allow resubmitting the form
event.preventDefault();
Expand Down

0 comments on commit 395217b

Please sign in to comment.