primo commit
This commit is contained in:
9
media/com_admin/js/admin-help.js
Normal file
9
media/com_admin/js/admin-help.js
Normal file
@ -0,0 +1,9 @@
|
||||
/**
|
||||
* @copyright (C) 2021 Open Source Matters, Inc. <https://www.joomla.org>
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
const helpIndex = document.getElementById('help-index');
|
||||
if (helpIndex) {
|
||||
helpIndex.querySelectorAll('a').forEach(element => element.addEventListener('click', () => window.scroll(0, 0)));
|
||||
}
|
||||
Reference in New Issue
Block a user