diff --git a/administrator/components/com_modules/forms/module.xml b/administrator/components/com_modules/forms/module.xml index ca92bd2c76782..3166ca932fc88 100644 --- a/administrator/components/com_modules/forms/module.xml +++ b/administrator/components/com_modules/forms/module.xml @@ -1,5 +1,8 @@
+ + +
+ + +
key, false, $url); } } diff --git a/administrator/components/com_plugins/forms/plugin.xml b/administrator/components/com_plugins/forms/plugin.xml index 37a70c983ca3b..f85c48b9c30a3 100644 --- a/administrator/components/com_plugins/forms/plugin.xml +++ b/administrator/components/com_plugins/forms/plugin.xml @@ -1,5 +1,8 @@ + + +
key, false, $url); } } diff --git a/build/media_source/system/js/inlinehelp.es6.js b/build/media_source/system/js/inlinehelp.es6.js index 7ce26f6f1f8b0..6236b9581f02c 100644 --- a/build/media_source/system/js/inlinehelp.es6.js +++ b/build/media_source/system/js/inlinehelp.es6.js @@ -41,6 +41,14 @@ Joomla.toggleInlineHelp = (toggleClass) => { .forEach((elToggler) => { // The class of the DIVs to toggle visibility on is defined by the data-class attribute of the click target. const toggleClass = elToggler.dataset.class ?? 'hide-aware-inline-help'; + const collection = document.getElementsByClassName(toggleClass); + + // no description => hide inlinehelp button + if (collection.length === 0) { + elToggler.classList.add('d-none'); + return; + } + // Add the click handler. elToggler.addEventListener('click', (event) => { event.preventDefault();