[ Index ] |
PHP Cross Reference of Joomla 4.2.2 documentation |
[Summary view] [Print] [Text view]
1 (function () { 2 'use strict'; 3 4 /** 5 * @copyright (C) 2018 Open Source Matters, Inc. <https://www.joomla.org> 6 * @license GNU General Public License version 2 or later; see LICENSE.txt 7 */ 8 (function (Joomla) { 9 if (Joomla.getOptions('menus-default')) { 10 // eslint-disable-next-line prefer-destructuring 11 var items = Joomla.getOptions('menus-default').items; 12 items.forEach(function (item) { 13 window["jSelectPosition_" + item] = function (name) { 14 document.getElementById(item).value = name; 15 Joomla.Modal.getCurrent().close(); 16 }; 17 }); 18 } 19 20 Array.from(document.querySelectorAll('.modal')).forEach(function (modalEl) { 21 modalEl.addEventListener('hidden.bs.modal', function () { 22 setTimeout(function () { 23 window.parent.location.reload(); 24 }, 1000); 25 }); 26 }); 27 })(Joomla); 28 29 (function (originalFn) { 30 Joomla.submitform = function (task, form) { 31 originalFn(task, form); 32 33 if (task === 'menu.exportXml') { 34 document.adminForm.task.value = ''; 35 } 36 }; 37 })(Joomla.submitform); 38 39 })();
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Wed Sep 7 05:41:13 2022 | Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer |