X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/807d88a6bbd34865987b59a757e7b4ef3b3fc718..9a0ea819fa5bfd8bce2e2500fbfc0cfcc75eff08:/src/wolnelektury/static/js/book_text/references.js?ds=inline diff --git a/src/wolnelektury/static/js/book_text/references.js b/src/wolnelektury/static/js/book_text/references.js index 795c737f2..cdfc1f06f 100644 --- a/src/wolnelektury/static/js/book_text/references.js +++ b/src/wolnelektury/static/js/book_text/references.js @@ -37,6 +37,10 @@ $('a.reference').each(function() { $this = $(this); uri = $this.attr('data-uri'); + if (uri == '') { + $this.remove(); + return; + } if (interestingReferences.hasOwnProperty(uri)) { $this.addClass('interesting'); ref = interestingReferences[uri];