Skip to content

Commit

Permalink
Merge pull request #40 from gtt-project/fix/replace-removed-jquery-api
Browse files Browse the repository at this point in the history
Replace removed jQuery api '.size()' to '.length'
  • Loading branch information
sanak authored Aug 23, 2024
2 parents 68a0141 + 4ffe604 commit e0ae8e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/javascripts/text_blocks.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit e0ae8e2

Please sign in to comment.