CoreFiles by mySites.guru
admin-template-toggle-switch.min.js1 lines, 1,700 bytes, from Joomla_4.0.0-alpha9-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha8
md5
c033a11984773d1b7ea04dfd892b2b2b
sha1
b21af543dcb86a3c7f69cdca49eed0ca76186f89
sha256
fe0d0f8e333259469ebce1ac1a8b029123ef662be06e372af54cef1e9fab7b8d
(function(){'use strict';var a=function(){var a=document.getElementById("diff-main");a&&(a.classList.remove("active"),"undefined"!=typeof Storage&&localStorage.removeItem("diffSwitchState"))},b=function(){var a=document.getElementById("diff-main");a&&(a.classList.add("active"),"undefined"!=typeof Storage&&localStorage.setItem("diffSwitchState","checked"))},c=function(){var 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=function(){var 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(){function e(){h.newActive=1,h.switch()}function f(){g.newActive=1,g.switch()}var 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){var i=new MutationObserver(function(a,b){g&&(e(),b.disconnect())});i.observe(h,{childList:!0,subtree:!0}),d()}if("undefined"!=typeof Storage&&localStorage.getItem("diffSwitchState")&&g){var j=new MutationObserver(function(a,b){g&&(f(),b.disconnect())});j.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.