first commit

This commit is contained in:
2025-06-17 11:53:18 +02:00
commit 9f0f7ba12b
8804 changed files with 1369176 additions and 0 deletions

View File

@ -0,0 +1,21 @@
{
"$schema": "https://developer.joomla.org/schemas/json-schema/web_assets.json",
"name": "com_actionlogs",
"version": "4.0.0",
"description": "Joomla CMS",
"license": "GPL-2.0-or-later",
"assets": [
{
"name": "com_actionlogs.admin-actionlogs",
"type": "script",
"uri": "com_actionlogs/admin-actionlogs-default.min.js",
"dependencies": [
"core"
],
"attributes": {
"type": "module"
},
"version": "810ef7"
}
]
}

View File

@ -0,0 +1,25 @@
/**
* @copyright (C) 2019 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
Joomla.submitbutton = task => {
if (task === 'actionlogs.exportLogs') {
Joomla.submitform(task, document.getElementById('exportForm'));
return;
}
if (task === 'actionlogs.exportSelectedLogs') {
// Get id of selected action logs item and pass it to export form hidden input
const cids = [];
const elements = [].slice.call(document.querySelectorAll("input[name='cid[]']:checked"));
if (elements.length) {
elements.forEach(element => {
cids.push(element.value);
});
}
document.exportForm.cids.value = cids.join(',');
Joomla.submitform(task, document.getElementById('exportForm'));
return;
}
Joomla.submitform(task);
};

View File

@ -0,0 +1 @@
Joomla.submitbutton=o=>{if("actionlogs.exportLogs"!==o){if("actionlogs.exportSelectedLogs"===o){const e=[],t=[].slice.call(document.querySelectorAll("input[name='cid[]']:checked"));return t.length&&t.forEach((o=>{e.push(o.value)})),document.exportForm.cids.value=e.join(","),void Joomla.submitform(o,document.getElementById("exportForm"))}Joomla.submitform(o)}else Joomla.submitform(o,document.getElementById("exportForm"))};