From 787764cddc2971afd8ac57fbe417903958852bdc Mon Sep 17 00:00:00 2001 From: Anika Churilova Date: Mon, 30 Sep 2024 15:27:23 +0200 Subject: [PATCH] global: add an empty global plugin * closes https://github.com/CERNDocumentServer/cds-rdm/issues/198 --- invenio_theme/assets/semantic-ui/js/invenio_theme/theme.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/invenio_theme/assets/semantic-ui/js/invenio_theme/theme.js b/invenio_theme/assets/semantic-ui/js/invenio_theme/theme.js index 25e9f50..99577ab 100644 --- a/invenio_theme/assets/semantic-ui/js/invenio_theme/theme.js +++ b/invenio_theme/assets/semantic-ui/js/invenio_theme/theme.js @@ -104,3 +104,8 @@ toggle && toggle.addEventListener("click", toggleMenu, false); document.addEventListener('DOMContentLoaded', event => { jquery("#flash-message #alert-content").css('display', 'block'); }) + +// Define a set of global plugins to be used in all modules +window.invenio = { + onSearchResultsRendered: () => {}, +}