CoreFiles by mySites.guru
admin-template-toggle-switch.es6.min.js1 lines, 1,614 bytes, from Joomla_4.0.0-alpha5-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha3
md5
2303c028df6bf53422074c623d9cf643
sha1
1ea8b176606c4c10ae3ec0e944b3572854266a29
sha256
88a4f772db3678471191d680707c8ee84744743d52d1a2a302444a20d3f52ef0
(()=>{"use strict";const e=()=>{const e=document.getElementById("diff-main");e&&(e.classList.remove("active"),"undefined"!=typeof Storage&&localStorage.removeItem("diffSwitchState"))},t=()=>{const e=document.getElementById("diff-main");e&&(e.classList.add("active"),"undefined"!=typeof Storage&&localStorage.setItem("diffSwitchState","checked"))},o=()=>{const e=document.getElementById("override-pane"),t=document.getElementById("core-pane");t&&e&&(t.classList.remove("active"),e.className="col-md-12","undefined"!=typeof Storage&&localStorage.removeItem("coreSwitchState"))},n=()=>{const e=document.getElementById("override-pane"),t=document.getElementById("core-pane");t&&e&&(t.classList.add("active"),e.className="col-md-6",Joomla.editors.instances.jform_core&&Joomla.editors.instances.jform_core.refresh(),"undefined"!=typeof Storage&&localStorage.setItem("coreSwitchState","checked"))};document.addEventListener("DOMContentLoaded",()=>{const c=document.getElementById("jform_show_diff"),d=document.getElementById("jform_show_core");if(c&&(c.addEventListener("joomla.switcher.on",t),c.addEventListener("joomla.switcher.off",e)),d&&(d.addEventListener("joomla.switcher.on",n),d.addEventListener("joomla.switcher.off",o)),"undefined"!=typeof Storage&&localStorage.getItem("coreSwitchState")&&d){new MutationObserver((e,t)=>{c&&(d.newActive=1,d.switch(),t.disconnect())}).observe(d,{childList:!0,subtree:!0}),n()}if("undefined"!=typeof Storage&&localStorage.getItem("diffSwitchState")&&c){new MutationObserver((e,t)=>{c&&(c.newActive=1,c.switch(),t.disconnect())}).observe(c,{childList:!0,subtree:!0}),t()}})})();

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.