Hidden infopages.
[wolnelektury.git] / src / wolnelektury / static / js / book_text / references.js
index 795c737..cdfc1f0 100644 (file)
     $('a.reference').each(function() {
         $this = $(this);
         uri = $this.attr('data-uri');
     $('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];
         if (interestingReferences.hasOwnProperty(uri)) {
             $this.addClass('interesting');
             ref = interestingReferences[uri];