CoreFiles by mySites.guru
installer.min.js1 lines, 3,567 bytes, from Joomla_4.0.0-alpha8-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha7
md5
b920327a23526185c908f21eba2d6777
sha1
ef041b37a6566aa24f01d581d373b31e52b9d4a4
sha256
f615772e6aa02e1262f6594ecf2c14e3648e3b1a9138a0338481518f648f3926
Joomla=window.Joomla||{},function(a){'use strict';document.addEventListener("DOMContentLoaded",function(){a.submitbuttonpackage=function(){var 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=function(){var 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=function(){var 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=function(){var 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=function(){var 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=function(){var a=document.getElementById("loading");a&&(a.style.display="block")};var 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",function(b){b.preventDefault(),a.submitbuttonpackage()})})}(Joomla),document.addEventListener("DOMContentLoaded",function(){if("undefined"==typeof FormData)return document.querySelector("#legacy-uploader").style.display="block",void(document.querySelector("#uploader-wrapper").style.display="none");var 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,g="index.php?option=com_installer&task=install.ajax_upload";e&&(g+="&return=".concat(e)),d.addEventListener("click",function(){b.click()}),b.addEventListener("change",function(){Joomla.submitbuttonpackage()}),a.addEventListener("dragenter",function(b){return b.preventDefault(),b.stopPropagation(),a.classList.add("hover"),!1}),a.addEventListener("dragover",function(b){return b.preventDefault(),b.stopPropagation(),a.classList.add("hover"),!1}),a.addEventListener("dragleave",function(b){return b.preventDefault(),b.stopPropagation(),a.classList.remove("hover"),!1}),a.addEventListener("drop",function(b){b.preventDefault(),b.stopPropagation(),a.classList.remove("hover");var d=b.target.files||b.dataTransfer.files;if(d.length){var 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:function onSuccess(a){var 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:function onError(a){c.style.display="none",alert(a.statusText)}})}})});

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