CoreFiles by mySites.guru
admin-cpanel-default.min.js1 lines, 1,079 bytes, from Joomla_4.0.0-alpha11-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha10
md5
cba09407e48e96b69063dd979e39cb10
sha1
4b382622c3d410965027e2afcc6d6444fc1febed
sha256
a9b574846b8484015d7eafc30c30a3677912103f1134c9ecc556993472521589
(function(a,b,c){var d="matches",e=function(a,b){for(var c,e=a;e;){if(c=e.parentElement,c&&c[d](b))return c;e=c}return null};c.unpublishModule=function(a){var 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:function onSuccess(){var b=e(a,".module-wrapper");b.parentNode.removeChild(b),c.renderMessages({message:[c.JText._("COM_CPANEL_UNPUBLISH_MODULE_SUCCESS")]})},onError:function onError(){c.renderMessages({error:[c.JText._("COM_CPANEL_UNPUBLISH_MODULE_ERROR")]})}})};var f=function(){["matches","msMatchesSelector"].some(function(a){return!("function"!=typeof b.body[a])&&(d=a,!0)});var a=b.getElementById("cpanel-modules");if(a){var e=[].slice.call(a.querySelectorAll(".unpublish-module"));e.forEach(function(a){a.addEventListener("click",function(a){return 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.