CoreFiles by mySites.guru
admin-item-edit_modules.min.js1 lines, 2,034 bytes, from Joomla_4.0.0-beta1-Beta-Full_Package.zip
Raw History Compare with 3.9.0-beta4
md5
a23c86ea8815ce7eb1535389aad9ba4e
sha1
f4560b428bba8c5476e2a2c10392a1cfef5d46ee
sha256
0f82f85b9f0e759c1387166de0da5012390b585a3fb01abf4636b2856cd45d50
Joomla=window.Joomla||{},function(){'use strict';var a=Joomla.getOptions("menus-edit-modules");a&&(window.viewLevels=a.viewLevels,window.menuId=parseInt(a.itemId,10));var 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",function(){var a=[].slice.call(document.querySelectorAll("tr.no"));a.forEach(function(a){a.classList.add("table-row"),a.classList.remove("hidden")})}),c&&c.addEventListener("click",function(){var a=[].slice.call(document.querySelectorAll("tr.no"));a.forEach(function(a){a.classList.add("hidden"),a.classList.remove("table-row")})}),d&&d.addEventListener("click",function(){var a=[].slice.call(document.querySelectorAll(".table tr.unpublished"));a.forEach(function(a){a.classList.add("table-row"),a.classList.remove("hidden")})}),e&&e.addEventListener("click",function(){var a=[].slice.call(document.querySelectorAll(".table tr.unpublished"));a.forEach(function(a){a.classList.add("hidden"),a.classList.remove("table-row")})}),f.length&&f.forEach(function(a){a.addEventListener("click",function(a){var b=a.target,c="index.php?option=com_modules&client_id=0&task=module.edit&tmpl=component&view=module&layout=modal&id="+b.getAttribute("data-module-id"),d=document.getElementById("moduleEditModal"),e=d.querySelector(".modal-body"),f=document.createElement("iframe");f.src=c,f.setAttribute("class","class=\"iframe jviewport-height70\""),e.innerHTML="",e.appendChild(f),d.open()})}),g.length&&g.forEach(function(a){a.addEventListener("click",function(a){var b=a.target,c=b.getAttribute("data-target");if(c){var d=document.querySelector("#moduleEditModal iframe"),e=d.contentDocument||d.contentWindow.document;e.querySelector(c).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.