CoreFiles by mySites.guru
admin-template-toggle-switch.es6.min.js1 lines, 1,668 bytes, from Joomla_4.0.0-alpha11-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha10
md5
c98e5e199a2ed1fe14856b5b53729b55
sha1
e6db9ecba7c40426ab5979517a01a7b8d551dfa4
sha256
dcba4f447486fb5f8c2db765df33f7aa696f62e83e2d919811e7794c1374d879
(()=>{'use strict';const a=()=>{const a=document.getElementById("diff-main");a&&(a.classList.remove("active"),"undefined"!=typeof Storage&&localStorage.removeItem("diffSwitchState"))},b=()=>{const a=document.getElementById("diff-main");a&&(a.classList.add("active"),"undefined"!=typeof Storage&&localStorage.setItem("diffSwitchState","checked"))},c=()=>{const a=document.getElementById("override-pane"),b=document.getElementById("core-pane");b&&a&&(b.classList.remove("active"),a.className="col-md-12","undefined"!=typeof Storage&&localStorage.removeItem("coreSwitchState"))},d=()=>{const a=document.getElementById("override-pane"),b=document.getElementById("core-pane");b&&a&&(b.classList.add("active"),a.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",()=>{function e(){h.newActive=1,h.switch()}function f(){g.newActive=1,g.switch()}const g=document.getElementById("jform_show_diff"),h=document.getElementById("jform_show_core");if(g&&(g.addEventListener("joomla.switcher.on",b),g.addEventListener("joomla.switcher.off",a)),h&&(h.addEventListener("joomla.switcher.on",d),h.addEventListener("joomla.switcher.off",c)),"undefined"!=typeof Storage&&localStorage.getItem("coreSwitchState")&&h){const a=new MutationObserver((a,b)=>{g&&(e(),b.disconnect())});a.observe(h,{childList:!0,subtree:!0}),d()}if("undefined"!=typeof Storage&&localStorage.getItem("diffSwitchState")&&g){const a=new MutationObserver((a,b)=>{g&&(f(),b.disconnect())});a.observe(g,{childList:!0,subtree:!0}),b()}})})();

The same content is in 4 releases, Joomla 4.0.0-alpha8 to 4.0.0-alpha11. See them all, or every version of this file.