5 lines
526 B
JavaScript
5 lines
526 B
JavaScript
/**
|
|
* @copyright (C) 2019 Open Source Matters, Inc. <https://www.joomla.org>
|
|
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
|
*/(n=>{n.addEventListener("DOMContentLoaded",()=>{n.querySelectorAll("#new-modules-list a.select-link").forEach(i=>{i.addEventListener("click",({currentTarget:a,target:o})=>{let e=a;e||(e=o,e&&!e.classList.contains("select-link")&&(e=e.parentNode));const t=e.getAttribute("data-function");t&&typeof window.parent[t]=="function"&&window.parent[t](e)})})})})(document);
|