- md5
- a023b7b99f93f5eeb03c88f1e93ec49b
- sha1
- 7d070e069491bbfb9e61660a80a4bf99e64c9968
- sha256
- 4a0ccee099940d9ca028d93ce8d9917be2e218d9be8eb7f5b83612a20e1e9fa8
(()=>{"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()}})})();
No other release has this exact content. See every version of this file.