CoreFiles by mySites.guru
admin-item-edit_modules.es6.min.js1 lines, 1,960 bytes, from Joomla_4.0.0-beta1-Beta-Full_Package.zip
Raw History Compare with 3.9.0-beta4
md5
8f17c945d6d4049ea5dd24ea60ce92f8
sha1
26aafa870a1243bb278b59435043df3483906cf8
sha256
1e26fc61f752a02c975a6f7e869781b781b6d555bb113e6286147c257ff2bde1
Joomla=window.Joomla||{},(()=>{'use strict';const a=Joomla.getOptions("menus-edit-modules");a&&(window.viewLevels=a.viewLevels,window.menuId=parseInt(a.itemId,10));const b=document.getElementById("jform_toggle_modules_assigned1"),c=document.getElementById("jform_toggle_modules_assigned0"),d=document.getElementById("jform_toggle_modules_published1"),e=document.getElementById("jform_toggle_modules_published0"),f=[].slice.call(document.getElementsByClassName("module-edit-link")),g=[].slice.call(document.querySelectorAll("#moduleEditModal .modal-footer .btn"));b&&b.addEventListener("click",()=>{const a=[].slice.call(document.querySelectorAll("tr.no"));a.forEach(a=>{a.classList.add("table-row"),a.classList.remove("hidden")})}),c&&c.addEventListener("click",()=>{const a=[].slice.call(document.querySelectorAll("tr.no"));a.forEach(a=>{a.classList.add("hidden"),a.classList.remove("table-row")})}),d&&d.addEventListener("click",()=>{const a=[].slice.call(document.querySelectorAll(".table tr.unpublished"));a.forEach(a=>{a.classList.add("table-row"),a.classList.remove("hidden")})}),e&&e.addEventListener("click",()=>{const a=[].slice.call(document.querySelectorAll(".table tr.unpublished"));a.forEach(a=>{a.classList.add("hidden"),a.classList.remove("table-row")})}),f.length&&f.forEach(a=>{a.addEventListener("click",({target:a})=>{const b="index.php?option=com_modules&client_id=0&task=module.edit&tmpl=component&view=module&layout=modal&id="+a.getAttribute("data-module-id"),c=document.getElementById("moduleEditModal"),d=c.querySelector(".modal-body"),e=document.createElement("iframe");e.src=b,e.setAttribute("class","class=\"iframe jviewport-height70\""),d.innerHTML="",d.appendChild(e),c.open()})}),g.length&&g.forEach(a=>{a.addEventListener("click",({target:a})=>{const b=a.getAttribute("data-target");if(b){const a=document.querySelector("#moduleEditModal iframe"),c=a.contentDocument||a.contentWindow.document;c.querySelector(b).click()}})})})();

The same content is in 6 releases, Joomla 4.0.0-beta to 4.0.0-beta6. See them all, or every version of this file.