CoreFiles by mySites.guru
admin-add_module.min.js4 lines, 1,097 bytes, from Joomla_4.4.13-Stable-Full_Package.zip
Raw History Compare with 4.4.12
md5
65f4563bc0429131433639689b6580f8
sha1
84a7c56832dc933b6718b60858910c1028a8add6
sha256
f30325ae73fad77594ac4bb410c28cf5d3572c998bdb60c0838096c326113649
/**
 * @copyright  (C) 2019 Open Source Matters, Inc. <https://www.joomla.org>
 * @license    GNU General Public License version 2 or later; see LICENSE.txt
 */(t=>{t.addEventListener("DOMContentLoaded",()=>{window.jSelectModuleType=()=>{const e=t.querySelectorAll("#moduleDashboardAddModal .modal-footer .btn.hidden");e.length&&setTimeout(()=>{e.forEach(o=>{o.classList.remove("hidden")})},1e3)};const s=t.querySelectorAll("#moduleDashboardAddModal .modal-footer .btn"),l=[];let n=!1;s.length&&s.forEach(e=>{e.classList.contains("hidden")&&l.push(e),e.addEventListener("click",o=>{let d=o.currentTarget;if(d||(d=o.target),d){const i=d.dataset.bsTarget;n=i==="#saveBtn",setTimeout(()=>{n=!1},1500);const r=t.querySelector("#moduleDashboardAddModal iframe"),c=(r.contentDocument||r.contentWindow.document).querySelector(i);c&&c.click()}})});const a=t.querySelector("#moduleDashboardAddModal");a&&(a.addEventListener("hide.bs.modal",()=>{l.forEach(e=>{e.classList.add("hidden")})}),a.addEventListener("hidden.bs.modal",()=>{n&&setTimeout(()=>{window.parent.location.reload()},1e3)}))})})(document);

The same content is in 38 releases, Joomla 4.4.1-rc1 to 5.1.0-alpha2. See them all, or every version of this file.