CoreFiles by mySites.guru
installer.es6.min.js1 lines, 3,465 bytes, from Joomla_4.0.0-alpha5-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha3
md5
ea1c0ec8a278005fffa2df3d0c7df5c4
sha1
3b295390cf110063f57d0494932b064c11d36758
sha256
39a2cb0428410ef242393afe361887b384d77eb7f46b8dd2c8008a84095f2881
Joomla=window.Joomla||{},(e=>{"use strict";document.addEventListener("DOMContentLoaded",()=>{e.submitbuttonpackage=(()=>{const t=document.getElementById("adminForm");""===t.install_package.value?alert(e.JText._("PLG_INSTALLER_PACKAGEINSTALLER_NO_PACKAGE"),!0):(e.displayLoader(),t.installtype.value="upload",t.submit())}),e.submitbuttonfolder=(()=>{const t=document.getElementById("adminForm");""===t.install_directory.value?alert(e.JText._("PLG_INSTALLER_FOLDERINSTALLER_NO_INSTALL_PATH"),!0):(e.displayLoader(),t.installtype.value="folder",t.submit())}),e.submitbuttonurl=(()=>{const t=document.getElementById("adminForm");""===t.install_url.value||"http://"===t.install_url.value||"https://"===t.install_url.value?alert(e.JText._("PLG_INSTALLER_URLINSTALLER_NO_URL"),!0):(e.displayLoader(),t.installtype.value="url",t.submit())}),e.submitbutton4=(()=>{const t=document.getElementById("adminForm");""===t.install_url.value||"http://"===t.install_url.value||"https://"===t.install_url.value?alert(e.JText._("COM_INSTALLER_MSG_INSTALL_ENTER_A_URL"),!0):(e.displayLoader(),t.installtype.value="url",t.submit())}),e.submitbuttonUpload=(()=>{const t=document.getElementById("uploadForm");""===t.install_package.value?alert(e.JText._("COM_INSTALLER_MSG_INSTALL_PLEASE_SELECT_A_PACKAGE"),!0):(e.displayLoader(),t.submit())}),e.displayLoader=(()=>{const e=document.getElementById("loading");e&&(e.style.display="block")});const t=document.getElementById("loading"),a=document.getElementById("installer-install");t&&a&&(t.style.top=parseInt(a.offsetTop-window.pageYOffset,10),t.style.left=0,t.style.width="100%",t.style.height="100%",t.style.display="none",t.style.marginTop="-10px"),document.getElementById("installbutton_package").addEventListener("click",t=>{t.preventDefault(),e.submitbuttonpackage()})})})(Joomla),document.addEventListener("DOMContentLoaded",()=>{if("undefined"==typeof FormData)return document.querySelector("#legacy-uploader").style.display="block",void(document.querySelector("#uploader-wrapper").style.display="none");const e=document.querySelector("#dragarea"),t=document.querySelector("#install_package"),a=document.querySelector("#loading"),l=document.querySelector("#select-file-button"),n=document.querySelector("#installer-return").value,o=document.querySelector("#installer-token").value;let s="index.php?option=com_installer&task=install.ajax_upload";n&&(s+=`&return=${n}`),l.addEventListener("click",()=>{t.click()}),t.addEventListener("change",()=>{Joomla.submitbuttonpackage()}),e.addEventListener("dragenter",t=>(t.preventDefault(),t.stopPropagation(),e.classList.add("hover"),!1)),e.addEventListener("dragover",t=>(t.preventDefault(),t.stopPropagation(),e.classList.add("hover"),!1)),e.addEventListener("dragleave",t=>(t.preventDefault(),t.stopPropagation(),e.classList.remove("hover"),!1)),e.addEventListener("drop",t=>{t.preventDefault(),t.stopPropagation(),e.classList.remove("hover");const l=t.target.files||t.dataTransfer.files;if(!l.length)return;const n=l[0],r=new FormData;r.append("install_package",n),r.append("installtype","upload"),r.append(o,1),a.style.display="block",Joomla.request({url:s,method:"POST",perform:!0,data:r,headers:{"Content-Type":"false"},onSuccess:e=>{const t=JSON.parse(e);t.success||console.log(t.message,t.messages),t.data.redirect?window.location.href=t.data.redirect:window.location.href="index.php?option=com_installer&view=install"},onError:e=>{a.style.display="none",alert(e.statusText)}})})});

The same content is in 2 releases, Joomla 4.0.0-alpha5 to 4.0.0-alpha6. See them all, or every version of this file.