CoreFiles by mySites.guru
admin-cpanel-default.es6.min.js1 lines, 996 bytes, from Joomla_4.0.0-alpha8-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha7
md5
97957e93105d1755c25b2d94fa4ab703
sha1
eb79fd634ad4860c37cc390a1285d1cefc4efec9
sha256
9a0ca5dd5eaf35d8db4c88b2d7bfe0f42c64ffa27b6fc3b190663d332ee514ed
((a,b,c)=>{let d="matches";const e=(a,b)=>{let c,e=a;for(;e;){if(c=e.parentElement,c&&c[d](b))return c;e=c}return null};c.unpublishModule=a=>{const b=a.getAttribute("data-module-id");c.request({url:"".concat("index.php?option=com_modules&task=modules.unpublish&format=json","&cid=").concat(b),method:"POST",headers:{"Content-Type":"application/json"},onSuccess:()=>{const b=e(a,".module-wrapper");b.parentNode.removeChild(b),c.renderMessages({message:[c.JText._("COM_CPANEL_UNPUBLISH_MODULE_SUCCESS")]})},onError:()=>{c.renderMessages({error:[c.JText._("COM_CPANEL_UNPUBLISH_MODULE_ERROR")]})}})};const f=()=>{["matches","msMatchesSelector"].some(a=>"function"==typeof b.body[a]&&(d=a,!0));const a=b.getElementById("cpanel-modules");if(a){const b=[].slice.call(a.querySelectorAll(".unpublish-module"));b.forEach(a=>{a.addEventListener("click",a=>c.unpublishModule(a.target))})}b.removeEventListener("DOMContentLoaded",f)};b.addEventListener("DOMContentLoaded",f)})(window,document,window.Joomla);

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