From 0e0d46f116bc37e4224ed6533a46fa5c8b3c0036 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..09b47b2 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'); }) + +// Declare global Invenio object to be used by JS applications in various modules +window.invenio = { + onSearchResultsRendered: () => {}, +}