From 4ffe604a39618429b378717840b2e324fdf30048 Mon Sep 17 00:00:00 2001 From: Ko Nagase Date: Fri, 23 Aug 2024 14:34:40 +0900 Subject: [PATCH] Replace removed jQuery api '.size()' to '.length' --- assets/javascripts/text_blocks.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/javascripts/text_blocks.js b/assets/javascripts/text_blocks.js index d731af1..cc77176 100644 --- a/assets/javascripts/text_blocks.js +++ b/assets/javascripts/text_blocks.js @@ -36,7 +36,7 @@ var TextBlocks = { reload: function(e){ var projectId = null - if ($("#issue_project_id").size() > 0) { + if ($("#issue_project_id").length > 0) { projectId = $("#issue_project_id").val() } else { projectId = $("#text_block_project_id").val()