first commit
This commit is contained in:
21
media/com_admin/joomla.asset.json
Normal file
21
media/com_admin/joomla.asset.json
Normal file
@ -0,0 +1,21 @@
|
||||
{
|
||||
"$schema": "https://developer.joomla.org/schemas/json-schema/web_assets.json",
|
||||
"name": "com_admin",
|
||||
"version": "4.0.0",
|
||||
"description": "Joomla CMS",
|
||||
"license": "GPL-2.0-or-later",
|
||||
"assets": [
|
||||
{
|
||||
"name": "com_admin.admin-help",
|
||||
"type": "script",
|
||||
"uri": "com_admin/admin-help.min.js",
|
||||
"dependencies": [
|
||||
"core"
|
||||
],
|
||||
"attributes": {
|
||||
"type": "module"
|
||||
},
|
||||
"version": "90c210"
|
||||
}
|
||||
]
|
||||
}
|
||||
10
media/com_admin/js/admin-help.js
Normal file
10
media/com_admin/js/admin-help.js
Normal file
@ -0,0 +1,10 @@
|
||||
/**
|
||||
* @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) {
|
||||
[].slice.call(helpIndex.querySelectorAll('a')).map(element => element.addEventListener('click', () => {
|
||||
window.scroll(0, 0);
|
||||
}));
|
||||
}
|
||||
1
media/com_admin/js/admin-help.min.js
vendored
Normal file
1
media/com_admin/js/admin-help.min.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
const helpIndex=document.getElementById("help-index");helpIndex&&[].slice.call(helpIndex.querySelectorAll("a")).map((e=>e.addEventListener("click",(()=>{window.scroll(0,0)}))));
|
||||
BIN
media/com_admin/js/admin-help.min.js.gz
Normal file
BIN
media/com_admin/js/admin-help.min.js.gz
Normal file
Binary file not shown.
Reference in New Issue
Block a user