[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/media/com_menus/js/ -> admin-item-edit_modules-es5.min.js (source)

   1  !function(){"use strict";Joomla=window.Joomla||{},function(){var e=Joomla.getOptions("menus-edit-modules");e&&(window.viewLevels=e.viewLevels,window.menuId=parseInt(e.itemId,10));var t=document.getElementById("jform_toggle_modules_assigned1"),l=document.getElementById("jform_toggle_modules_assigned0"),o=document.getElementById("jform_toggle_modules_published1"),n=document.getElementById("jform_toggle_modules_published0"),d=[].slice.call(document.getElementsByClassName("module-edit-link")),c=[].slice.call(document.querySelectorAll("#moduleEditModal .modal-footer .btn"));t&&t.addEventListener("click",(function(){[].slice.call(document.querySelectorAll("tr.no")).forEach((function(e){e.classList.add("table-row"),e.classList.remove("hidden")}))})),l&&l.addEventListener("click",(function(){[].slice.call(document.querySelectorAll("tr.no")).forEach((function(e){e.classList.add("hidden"),e.classList.remove("table-row")}))})),o&&o.addEventListener("click",(function(){[].slice.call(document.querySelectorAll(".table tr.unpublished")).forEach((function(e){e.classList.add("table-row"),e.classList.remove("hidden")}))})),n&&n.addEventListener("click",(function(){[].slice.call(document.querySelectorAll(".table tr.unpublished")).forEach((function(e){e.classList.add("hidden"),e.classList.remove("table-row")}))})),d.length&&d.forEach((function(e){e.addEventListener("click",(function(e){var t="index.php?option=com_modules&client_id=0&task=module.edit&tmpl=component&view=module&layout=modal&id="+e.target.getAttribute("data-module-id"),l=document.getElementById("moduleEditModal"),o=l.querySelector(".modal-body"),n=document.createElement("iframe");n.src=t,n.setAttribute("class",'class="iframe jviewport-height70"'),o.innerHTML="",o.appendChild(n),l.open()}))})),c.length&&c.forEach((function(e){e.addEventListener("click",(function(e){var t=e.target.getAttribute("data-bs-target");if(t){var l=document.querySelector("#moduleEditModal iframe");(l.contentDocument||l.contentWindow.document).querySelector(t).click()}}))}))}()}();


Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer