CoreFiles by mySites.guru
admin-login.min.js1 lines, 1,533 bytes, from Joomla_4.0.0-beta2-Beta-Full_Package.zip
Raw History Compare with 4.0.0-beta
md5
2fbe980f3f604cb3e0749c2dc1cf7f0f
sha1
8ed573100bf132fea4b39dd6d2002b6c70d4c2ee
sha256
8b4d2f33701bf9a2f43aab5672a5b94011d4de28dffff4e6cb039f4f74334357
function _typeof(a){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},_typeof(a)}(function(a,b){'use strict';b.addEventListener("DOMContentLoaded",function(){var c=b.getElementById("btn-login-submit"),d=b.getElementById("form-login"),e=b.querySelector(".login-initial");c&&c.addEventListener("click",function(c){c.preventDefault(),d&&b.formvalidator.isValid(d)&&a.submitbutton("login")}),e&&(e.classList.remove("hidden"),!b.querySelector("joomla-alert")&&b.getElementById("mod-login-username").focus()),d&&d.addEventListener("submit",function(b){var c=[];b.preventDefault(),c.push("format=json");for(var e,f=0;f<d.elements.length;f+=1)e=d.elements[f],e.hasAttribute("name")&&"INPUT"===e.nodeName?c.push("".concat(encodeURIComponent(e.name),"=").concat(encodeURIComponent(e.value))):e.hasAttribute("name")&&"SELECT"===e.nodeName&&0<e.value.length&&c.push("".concat(encodeURIComponent(e.name),"=").concat(encodeURIComponent(e.value)));a.request({url:"index.php",method:"POST",data:c.join("&").replace(/%20/g,"+"),perform:!0,onSuccess:function onSuccess(b){var c=JSON.parse(b);c.success?(a.Event.dispatch(d,"joomla:login"),window.location.href=c.data.return):"object"===_typeof(c.messages)&&null!==c.messages&&a.renderMessages(c.messages)},onError:function onError(b){a.renderMessages(a.ajaxErrorsMessages(b))}})})})})(window.Joomla,document);

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