CoreFiles by mySites.guru
admin-template-toggle-switch.min.js1 lines, 1,798 bytes, from Joomla_4.0.0-beta6-Beta-Full_Package.zip
Raw History Compare with 4.0.0-beta5
md5
d7b7da60dc032d6adc53e9c526b45d71
sha1
eaf78ca2c2c930e7871bbfb1b6fe0ee11989e5e7
sha256
1d061cfc935510071d51db3ad04e3eb2fb6613b4c4014e94cac8b74d5d6d3728
(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"),c=a.parentElement.parentElement;b&&a&&(b.classList.remove("active"),c.classList.contains("options-grid-form-half")&&(c.classList.remove("options-grid-form-half"),c.classList.add("options-grid-form-full")),"undefined"!=typeof Storage&&localStorage.removeItem("coreSwitchState"))},d=function(){var a=document.getElementById("override-pane"),b=document.getElementById("core-pane"),c=a.parentElement.parentElement;b&&a&&(b.classList.add("active"),c.classList.contains("options-grid-form-full")&&(c.classList.remove("options-grid-form-full"),c.classList.add("options-grid-form-half")),Joomla.editors.instances.jform_core&&Joomla.editors.instances.jform_core.refresh(),"undefined"!=typeof Storage&&localStorage.setItem("coreSwitchState","checked"))};document.addEventListener("DOMContentLoaded",function(){var e=document.getElementById("jform_show_diff1"),f=document.getElementById("jform_show_diff0"),g=document.getElementById("jform_show_core1"),h=document.getElementById("jform_show_core0");e&&f&&(e.addEventListener("click",b),f.addEventListener("click",a)),g&&h&&(g.addEventListener("click",d),h.addEventListener("click",c)),"undefined"!=typeof Storage&&localStorage.getItem("coreSwitchState")&&g&&(g.checked=!0,h.checked=!1,d()),"undefined"!=typeof Storage&&localStorage.getItem("diffSwitchState")&&e&&(e.checked=!0,f.checked=!1,b())})})();

The same content is in 8 releases, Joomla 4.0.0-alpha12 to 4.0.0-beta7. See them all, or every version of this file.