- md5
- f41f69309f9c41c791266d58880245ec
- sha1
- 76e29677f4ec2c9eefa12659a765936342214890
- sha256
- e96d259ae8189a29cdd370f4824907805e1febe5f59cde0d19319f3ccafd7b0e
/**
* @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(/&/g,"&"):"index.php";document.title=Joomla.Text._("INSTL_PAGE_TITLE")+": "+Joomla.Text._("INSTL_COMPLETE_TITLE"),document.getElementById("installAddFeatures")&&document.getElementById("installAddFeatures").addEventListener("click",function(e){e.preventDefault(),document.title=Joomla.Text._("INSTL_PAGE_TITLE")+": "+Joomla.Text._("INSTL_COMPLETE_ADD_EXTRA_LANGUAGE"),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.title=Joomla.Text._("INSTL_PAGE_TITLE")+": "+Joomla.Text._("INSTL_COMPLETE_TITLE"),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 o=document.getElementById("automatedUpdates");o.parentNode.removeChild(o)}},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(n){n.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 o=JSON.parse(t);if(o.error===!0)o.messages?(Joomla.renderMessages(o.messages),Joomla.loadOptions({"csrf.token":o.token})):Joomla.renderMessages({error:["Unknown error deleting the installation folder."]});else{const n=document.getElementById("customInstallation");n.parentNode.removeChild(n);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 n=document.querySelector("joomla-core-loader");n&&n.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 o="en-GB";document.querySelector('input[name="administratorlang"]:checked')&&(o=document.querySelector('input[name="administratorlang"]:checked').value),e.preventDefault(),Joomla.request({method:"POST",url:`${Joomla.installationBaseUrl}?view=setup&frontendlang=${t}&administratorlang=${o}&task=language.setdefault&format=json`,perform:!0,token:!0,headers:{"Content-Type":"application/x-www-form-urlencoded"},onSuccess(n){const a=JSON.parse(n);a.messages&&Joomla.renderMessages(a.messages,"#system-message-container"),Joomla.loadOptions({"csrf.token":a.token})},onError(n){Joomla.renderMessages(Joomla.ajaxErrorsMessages(n))}}),document.getElementById("header")&&document.getElementById("header").scrollIntoView()});
No other release has this exact content. See every version of this file.