CoreFiles by mySites.guru
remove.min.js5 lines, 5,626 bytes, from Joomla_6.2.0-Stable-Full_Package.zip
Raw History Compare with 6.1.4
md5
3a21dc1fdbf9fb3593d92ce7f6d49375
sha1
ca04e204a56c89f9ee2ee23c9da09d2b403b94b5
sha256
170ea76b7e126d0e6e4612b582ebe9343f8cf01e3bc29a317a2d2cf7bcd5cfbf
/**
 * @package     Joomla.Installation
 * @copyright   (C) 2017 Open Source Matters, Inc. <https://www.joomla.org>
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */var url=Joomla.getOptions("system.installation").url?Joomla.getOptions("system.installation").url.replace(/&amp;/g,"&"):"index.php";document.getElementById("installAddFeatures")&&document.getElementById("installAddFeatures").addEventListener("click",function(e){e.preventDefault(),document.getElementById("installLanguages").classList.add("active"),document.getElementById("automatedUpdates")?.classList?.remove("active"),document.getElementById("installCongrat").classList.remove("active"),document.getElementById("installFinal").classList.remove("active"),document.getElementById("installRecommended").classList.remove("active")}),document.getElementById("skipLanguages")&&document.getElementById("skipLanguages").addEventListener("click",function(e){e.preventDefault(),document.getElementById("automatedUpdates")?.classList?.add("active"),document.getElementById("installCongrat").classList.add("active"),document.getElementById("installFinal").classList.add("active"),document.getElementById("installRecommended").classList.add("active"),document.getElementById("installLanguages").classList.remove("active"),document.getElementById("installFinal")&&document.getElementById("installFinal").focus()}),document.getElementById("removeInstallationFolder")&&document.getElementById("removeInstallationFolder").addEventListener("click",function(e){e.preventDefault(),window.confirm(Joomla.Text._("INSTL_REMOVE_INST_FOLDER").replace("%s","installation"))&&Joomla.deleteJoomlaInstallationDirectory()}),document.getElementById("automatedUpdatesDisableButton")&&document.getElementById("automatedUpdatesDisableButton").addEventListener("click",function(e){e.preventDefault(),window.confirm(Joomla.Text._("INSTL_DISABLE_AUTOUPDATE"))&&Joomla.disableAutomatedUpdates()});const completeInstallationOptions=document.querySelectorAll(".complete-installation");completeInstallationOptions.forEach(function(e){e.addEventListener("click",function(t){return"development"in e.dataset||"installremoved"in e.dataset?window.location.href=e.dataset.href:Joomla.deleteJoomlaInstallationDirectory(e.dataset.href),!1})}),Joomla.disableAutomatedUpdates=function(){Joomla.request({method:"POST",url:Joomla.installationBaseUrl+"?task=installation.disableAutomatedUpdates&format=json",perform:!0,token:!0,headers:{"Content-Type":"application/x-www-form-urlencoded"},onSuccess:function(e){const t=JSON.parse(e);if(t.error===!0)t.messages?(Joomla.renderMessages(t.messages),Joomla.loadOptions({"csrf.token":t.token})):Joomla.renderMessages({error:["Unknown error disabling the automated updates."]});else{const n=document.getElementById("automatedUpdates");n.parentNode.removeChild(n)}},onError:function(e){Joomla.renderMessages(Joomla.ajaxErrorsMessages(e))}})},Joomla.deleteJoomlaInstallationDirectory=function(e){Joomla.request({method:"POST",url:Joomla.installationBaseUrl+"?task=installation.removeFolder&format=json",perform:!0,token:!0,headers:{"Content-Type":"application/x-www-form-urlencoded"},onSuccess:function(t){completeInstallationOptions.forEach(function(o){o.dataset.installremoved="true"}),document.getElementById("installAddFeatures")&&(document.getElementById("installAddFeatures").disabled=!0),document.getElementById("automatedUpdatesDisableButton")&&(document.getElementById("automatedUpdatesDisableButton").disabled=!0),document.getElementById("removeInstallationFolder")&&(document.getElementById("removeInstallationFolder").disabled=!0);const n=JSON.parse(t);if(n.error===!0)n.messages?(Joomla.renderMessages(n.messages),Joomla.loadOptions({"csrf.token":n.token})):Joomla.renderMessages({error:["Unknown error deleting the installation folder."]});else{const o=document.getElementById("customInstallation");o.parentNode.removeChild(o);const a=document.getElementById("automatedUpdates");a&&a.parentNode.removeChild(a);const l=document.getElementById("removeInstallationTab");l&&l.parentNode.removeChild(l),e&&(window.location.href=e)}},onError:function(t){Joomla.renderMessages(Joomla.ajaxErrorsMessages(t))}})},document.getElementById("installLanguagesButton")&&document.getElementById("installLanguagesButton").addEventListener("click",function(e){e.preventDefault();var t=document.getElementById("languagesForm");if(t){Joomla.removeMessages(),document.body.appendChild(document.createElement("joomla-core-loader"));try{Joomla.install(["languages"],t,!0)}catch{const o=document.querySelector("joomla-core-loader");o&&o.remove()}}}),document.getElementById("defaultLanguagesButton")&&document.getElementById("defaultLanguagesButton").addEventListener("click",e=>{let t="en-GB";document.querySelector('input[name="frontendlang"]:checked')&&(t=document.querySelector('input[name="frontendlang"]:checked').value);let n="en-GB";document.querySelector('input[name="administratorlang"]:checked')&&(n=document.querySelector('input[name="administratorlang"]:checked').value),e.preventDefault(),Joomla.request({method:"POST",url:`${Joomla.installationBaseUrl}?view=setup&frontendlang=${t}&administratorlang=${n}&task=language.setdefault&format=json`,perform:!0,token:!0,headers:{"Content-Type":"application/x-www-form-urlencoded"},onSuccess(o){const a=JSON.parse(o);a.messages&&Joomla.renderMessages(a.messages,"#system-message-container"),Joomla.loadOptions({"csrf.token":a.token})},onError(o){Joomla.renderMessages(Joomla.ajaxErrorsMessages(o))}}),document.getElementById("header")&&document.getElementById("header").scrollIntoView()});

The same content is in 11 releases, Joomla 6.2.0-alpha1 to 6.2.1. See them all, or every version of this file.