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,49 @@
/**
* @copyright (C) 2018 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
(() => {
const onSelect = () => {
const batchCategory = document.getElementById('batch-category-id');
const batchMenu = document.getElementById('batch-menu-id');
const batchPosition = document.getElementById('batch-position-id');
const batchGroup = document.getElementById('batch-group-id');
const batchCopyMove = document.getElementById('batch-copy-move');
let batchSelector;
const onChange = () => {
if (!batchSelector.value || batchSelector.value && parseInt(batchSelector.value, 10) === 0) {
batchCopyMove.classList.add('hidden');
} else {
batchCopyMove.classList.remove('hidden');
}
};
if (batchCategory) {
batchSelector = batchCategory;
}
if (batchMenu) {
batchSelector = batchMenu;
}
if (batchPosition) {
batchSelector = batchPosition;
}
if (batchGroup) {
batchSelector = batchGroup;
}
if (batchCopyMove) {
batchCopyMove.classList.add('hidden');
}
if (batchCopyMove) {
batchSelector.addEventListener('change', onChange);
}
// Cleanup
document.removeEventListener('DOMContentLoaded', onSelect, true);
};
// Document loaded
document.addEventListener('DOMContentLoaded', onSelect, true);
// Joomla updated
document.addEventListener('joomla:updated', onSelect, true);
})();

View File

@ -0,0 +1 @@
(()=>{const e=()=>{const t=document.getElementById("batch-category-id"),d=document.getElementById("batch-menu-id"),n=document.getElementById("batch-position-id"),o=document.getElementById("batch-group-id"),a=document.getElementById("batch-copy-move");let c;const m=()=>{!c.value||c.value&&0===parseInt(c.value,10)?a.classList.add("hidden"):a.classList.remove("hidden")};t&&(c=t),d&&(c=d),n&&(c=n),o&&(c=o),a&&a.classList.add("hidden"),a&&c.addEventListener("change",m),document.removeEventListener("DOMContentLoaded",e,!0)};document.addEventListener("DOMContentLoaded",e,!0),document.addEventListener("joomla:updated",e,!0)})();