CoreFiles by mySites.guru
admin-item-edit_modules.min.js4 lines, 2,071 bytes, from Joomla_4.4.13-Stable-Full_Package.zip
Raw History Compare with 4.4.12
md5
61353424697eb04f275110b0865d3c53
sha1
294ad078d34a3a76120a132c55311077e042b829
sha256
2c08d68d07e64282a21c0ec251f839efa7fad85836ddc94344c8c1628ef44be5
/**
 * @copyright  (C) 2018 Open Source Matters, Inc. <https://www.joomla.org>
 * @license    GNU General Public License version 2 or later; see LICENSE.txt
 */Joomla=window.Joomla||{},(()=>{const s=Joomla.getOptions("menus-edit-modules");s&&(window.viewLevels=s.viewLevels,window.menuId=parseInt(s.itemId,10));const g="index.php?option=com_modules&client_id=0&task=module.edit&tmpl=component&view=module&layout=modal&id=",c=document.getElementById("jform_toggle_modules_assigned1"),i=document.getElementById("jform_toggle_modules_assigned0"),a=document.getElementById("jform_toggle_modules_published1"),m=document.getElementById("jform_toggle_modules_published0"),r=[].slice.call(document.getElementsByClassName("module-edit-link")),u=[].slice.call(document.querySelectorAll("#moduleEditModal .modal-footer .btn"));c&&c.addEventListener("click",()=>{[].slice.call(document.querySelectorAll("tr.no")).forEach(e=>{e.classList.add("table-row"),e.classList.remove("hidden")})}),i&&i.addEventListener("click",()=>{[].slice.call(document.querySelectorAll("tr.no")).forEach(e=>{e.classList.add("hidden"),e.classList.remove("table-row")})}),a&&a.addEventListener("click",()=>{[].slice.call(document.querySelectorAll(".table tr.unpublished")).forEach(e=>{e.classList.add("table-row"),e.classList.remove("hidden")})}),m&&m.addEventListener("click",()=>{[].slice.call(document.querySelectorAll(".table tr.unpublished")).forEach(e=>{e.classList.add("hidden"),e.classList.remove("table-row")})}),r.length&&r.forEach(t=>{t.addEventListener("click",({target:e})=>{const o=g+e.getAttribute("data-module-id"),l=document.getElementById("moduleEditModal"),d=l.querySelector(".modal-body"),n=document.createElement("iframe");n.src=o,n.setAttribute("class",'class="iframe jviewport-height70"'),d.innerHTML="",d.appendChild(n),l.open()})}),u.length&&u.forEach(t=>{t.addEventListener("click",({target:e})=>{const o=e.getAttribute("data-bs-target");if(o){const l=document.querySelector("#moduleEditModal iframe");(l.contentDocument||l.contentWindow.document).querySelector(o).click()}})})})();

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.