CoreFiles by mySites.guru
admin-item-edit_modules.es6.min.js1 lines, 1,913 bytes, from Joomla_4.0.0-alpha9-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha8
md5
c699cda37733da385508334707bfc7dd
sha1
8d00efc9d887a88b00d934aabdbf9cc8f7d957d5
sha256
22f85c41e9908fc8e4481089b7ef0db0c190907d52ca28e9e58afffb9ce18d4a
Joomla=window.Joomla||{},(()=>{'use strict';const a=Joomla.getOptions("menus-edit-modules");a&&(window.viewLevels=a.viewLevels,window.menuId=parseInt(a.itemId,10)),document.addEventListener("DOMContentLoaded",()=>{const a=document.getElementById("jform_toggle_modules_assigned1"),b=document.getElementById("jform_toggle_modules_assigned0"),c=document.getElementById("jform_toggle_modules_published1"),d=document.getElementById("jform_toggle_modules_published0"),e=[].slice.call(document.getElementsByClassName("module-edit-link")),f=[].slice.call(document.querySelectorAll("#moduleEditModal .modal-footer .btn"));a&&a.addEventListener("click",()=>{const a=[].slice.call(document.querySelectorAll("tr.no"));a.forEach(a=>{a.style.display="table-row"})}),b&&b.addEventListener("click",()=>{const a=[].slice.call(document.querySelectorAll("tr.no"));a.forEach(a=>{a.style.display="none"})}),c&&c.addEventListener("click",()=>{const a=[].slice.call(document.querySelectorAll(".table tr.unpublished"));a.forEach(a=>{a.style.display="table-row"})}),d&&d.addEventListener("click",()=>{const a=[].slice.call(document.querySelectorAll(".table tr.unpublished"));a.forEach(a=>{a.style.display="none"})}),e.length&&e.forEach(a=>{a.addEventListener("click",a=>{const b="index.php?option=com_modules&client_id=0&task=module.edit&tmpl=component&view=module&layout=modal&id="+a.target.getAttribute("data-moduleId"),c=document.getElementById("moduleEditModal");c.addEventListener("show.bs.modal",a=>{const c=document.createElement("iframe");c.src=b,c.setAttribute("class","class=\"iframe jviewport-height70\"");const d=a.target.querySelector(".modal-body");d.innerHTML="",d.appendChild(c)})})}),f.length&&f.forEach(a=>{a.addEventListener("click",a=>{const b=a.target.getAttribute("data-target");if(b){const a=document.querySelector("#moduleEditModal iframe");a.contents().querySelector(b).click()}})})})})();

The same content is in 4 releases, Joomla 4.0.0-alpha8 to 4.0.0-alpha11. See them all, or every version of this file.