diff --git a/depictions/web/js/content-blocks-index.js b/depictions/web/js/content-blocks-index.js index 61802123..496452c1 100644 --- a/depictions/web/js/content-blocks-index.js +++ b/depictions/web/js/content-blocks-index.js @@ -53,7 +53,7 @@ function getContentBlocks() { source: "package>screenshots>screenshot", render: (element, source) => { $("#screenshotsLink").remove(); - if ($(source).size() === 0) { + if ($(source).length === 0) { return; } // create screenshots link @@ -79,7 +79,7 @@ function getContentBlocks() { source: "package>changelog>change", render: (element, source) => { $("#changelogLink").remove(); - if ($(source).size() === 0) { + if ($(source).length === 0) { return; } // create changelog link @@ -103,7 +103,7 @@ function getContentBlocks() { source: "package>links>link", paragraphElement: "
  • ", render: (element, source) => { - if ($(source).size() === 0) { + if ($(source).lenght === 0) { $("#externalLinksContainer").remove(); } diff --git a/depictions/web/js/content-blocks-screenshots.js b/depictions/web/js/content-blocks-screenshots.js index 9aa7dcf0..4da89f2e 100644 --- a/depictions/web/js/content-blocks-screenshots.js +++ b/depictions/web/js/content-blocks-screenshots.js @@ -4,7 +4,7 @@ function getContentBlocks() { type: "custom", source: "package>screenshots>screenshot", render: (element, source) => { - if ($(source).size() === 0) { + if ($(source).length === 0) { $(element).append( $( "
    The aren't any screenshots for this package
    "