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

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