From 395217b9d1b2f31be279c560ea48b9dd519a688e Mon Sep 17 00:00:00 2001 From: Ko Nagase Date: Fri, 23 Aug 2024 14:42:37 +0900 Subject: [PATCH] Replace removed jQuery api '.size()' to '.length' --- app/views/redmine_privacy/_issues_new_top_hook.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/redmine_privacy/_issues_new_top_hook.html.erb b/app/views/redmine_privacy/_issues_new_top_hook.html.erb index 7e8e0ca..d620a52 100644 --- a/app/views/redmine_privacy/_issues_new_top_hook.html.erb +++ b/app/views/redmine_privacy/_issues_new_top_hook.html.erb @@ -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();