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()