[ 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) 2019 Open Source Matters, Inc. <https://www.joomla.org> 6 * @license GNU General Public License version 2 or later; see LICENSE.txt 7 */ 8 (function (document) { 9 document.addEventListener('DOMContentLoaded', function () { 10 var elems = document.querySelectorAll('#new-modules-list a.select-link'); 11 elems.forEach(function (elem) { 12 elem.addEventListener('click', function (_ref) { 13 var currentTarget = _ref.currentTarget, 14 target = _ref.target; 15 var targetElem = currentTarget; // There is some bug with events in iframe where currentTarget is "null" 16 // => prevent this here by bubble up 17 18 if (!targetElem) { 19 targetElem = target; 20 21 if (targetElem && !targetElem.classList.contains('select-link')) { 22 targetElem = targetElem.parentNode; 23 } 24 } 25 26 var functionName = targetElem.getAttribute('data-function'); 27 28 if (functionName && typeof window.parent[functionName] === 'function') { 29 window.parent[functionName](targetElem); 30 } 31 }); 32 }); 33 }); 34 })(document); 35 36 })();
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 |