CoreFiles by mySites.guru
admin-template-toggle-switch.min.js1 lines, 1,700 bytes, from Joomla_4.0.0-alpha7-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha6
md5
3fc869801716de95db7c078f20a98998
sha1
2c5c9d761db9e7133ccc853e74710d0b0f01567b
sha256
b4b777120aeabb22dbef3dd6db04157701c5416447eabba8040cef4dc4956683
(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 2 releases, Joomla 4.0.0-alpha6 to 4.0.0-alpha7. See them all, or every version of this file.