Plugin Directory

Changeset 3430865


Ignore:
Timestamp:
01/02/2026 05:25:18 AM (3 months ago)
Author:
santoshtmp7
Message:

v1.1.1

Location:
citation-note
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • citation-note/tags/1.1.1/assets/js/citation-note.js

    r3430862 r3430865  
    7070  } else {
    7171    const references = document.querySelectorAll("sup.citenote-reference");
    72     references.forEach((ref) => {
    73       ref.remove();
    74     });
    75     console.log(
    76       "citation footnoes list output is not set. please add shortcode [citenote_display_list] at the end of the page content."
    77     );
     72    if (references.length) {
     73      references.forEach((ref) => {
     74        ref.remove();
     75      });
     76      console.log(
     77        "citation footnoes list output is not set. please add shortcode [citenote_display_list] at the end of the page content."
     78      );
     79    }
    7880  }
    7981});
  • citation-note/trunk/assets/js/citation-note.js

    r3425938 r3430865  
    7070  } else {
    7171    const references = document.querySelectorAll("sup.citenote-reference");
    72     references.forEach((ref) => {
    73       ref.remove();
    74     });
    75     console.log(
    76       "citation footnoes list output is not set. please add shortcode [citenote_display_list] at the end of the page content."
    77     );
     72    if (references.length) {
     73      references.forEach((ref) => {
     74        ref.remove();
     75      });
     76      console.log(
     77        "citation footnoes list output is not set. please add shortcode [citenote_display_list] at the end of the page content."
     78      );
     79    }
    7880  }
    7981});
Note: See TracChangeset for help on using the changeset viewer.