CoreFiles by mySites.guru
admin-login.es6.min.js1 lines, 1,200 bytes, from Joomla_4.0.0-alpha12-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha11
md5
59024be0372f1909729ec0f0392a8759
sha1
bc788f30be96e56b6f5c2dfa33bec49770d89306
sha256
cdc711e406237244596582903bb2ae27e3a2ba46a1ab5945a7daf010bd8a2816
((a,b)=>{'use strict';b.addEventListener("DOMContentLoaded",()=>{const c=b.getElementById("btn-login-submit"),d=b.getElementById("form-login"),e=b.querySelector(".login-initial");c&&c.addEventListener("click",c=>{c.preventDefault(),d&&b.formvalidator.isValid(d)&&a.submitbutton("login")}),e&&(e.style.display="block",!b.querySelector("joomla-alert")&&b.getElementById("mod-login-username").focus()),d&&d.addEventListener("submit",b=>{const c=[];b.preventDefault(),c.push("format=json");for(let a=0;a<d.elements.length;a+=1){const b=d.elements[a];b.hasAttribute("name")&&"INPUT"===b.nodeName?c.push("".concat(encodeURIComponent(b.name),"=").concat(encodeURIComponent(b.value))):b.hasAttribute("name")&&"SELECT"===b.nodeName&&0<b.value.length&&c.push("".concat(encodeURIComponent(b.name),"=").concat(encodeURIComponent(b.value)))}a.request({url:"index.php",method:"POST",data:c.join("&").replace(/%20/g,"+"),perform:!0,onSuccess:b=>{const 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:b=>{a.renderMessages(a.ajaxErrorsMessages(b))}})})})})(window.Joomla,document);

No other release has this exact content. See every version of this file.