Go to Administrator / Help / Start Here - Joomla! Help
Scroll down to near the bottom of the long list and click an item there
Something should happen
Nothing appears to happen because the Iframe with the new help page has been loaded out of sight.
I previously had a fix committed for this issue using a scrolling div for the index. The css for this has been removed in the recent round of template clean up. I now have a different solution using scroll to top on selecting any help item. For my testing I have put this in the com_admin/tmpl/help/default.php like so:
$wa = $this->document->getWebAssetManager();
$content = "
document.addEventListener('DOMContentLoaded', function(event) {
let helpIndex = document.getElementById('help-index');
let links = helpIndex.querySelectorAll('a');
links && links.forEach(element => {
element.addEventListener('click', event => {
window.scroll(0,0);
});
})
});
";
$wa->addInlineScript($content);
Is that best, or should it be in one of the Javascript files?
Is that best, or should it be in one of the Javascript files?
Please use a file, don't use inline scripts
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2021-05-10 16:45:09 |
Closed_By | ⇒ | alikon |
oops
See #33644
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/33722.