primo commit

This commit is contained in:
2024-12-17 17:34:10 +01:00
commit e650f8df99
16435 changed files with 2451012 additions and 0 deletions

View File

@ -0,0 +1,21 @@
/**
* @copyright (C) 2018 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
if (Joomla.getOptions('menus-default')) {
const items = Joomla.getOptions('menus-default', {}).items || [];
items.forEach(item => {
window[`jSelectPosition_${item}`] = name => {
document.getElementById(item).value = name;
Joomla.Modal.getCurrent().close();
};
});
}
const originalFn = Joomla.submitform;
Joomla.submitform = (task, form) => {
originalFn(task, form);
if (task === 'menu.exportXml') {
document.adminForm.task.value = '';
}
};