CoreFiles by mySites.guru
admin-template-toggle-switch.min.js4 lines, 1,868 bytes, from Joomla_4.4.13-Stable-Full_Package.zip
Raw History Compare with 4.4.12
md5
ff8ac7afc5f136f8d9798ff87ac8ae83
sha1
b57d9aa8af7184e679e3d563453ad5727a3360ab
sha256
c6e1ca2b356c6ff54eb6a87f7b1c7e8a287def1f6f1c6b36902ec0e8e1ea5aca
/**
 * @copyright  (C) 2018 Open Source Matters, Inc. <https://www.joomla.org>
 * @license    GNU General Public License version 2 or later; see LICENSE.txt
 */(()=>{const f=()=>{const e=document.getElementById("diff-main");e&&(e.classList.remove("active"),typeof Storage<"u"&&localStorage.removeItem("diffSwitchState"))},i=()=>{const e=document.getElementById("diff-main");e&&(e.classList.add("active"),typeof Storage<"u"&&localStorage.setItem("diffSwitchState","checked"))},d=()=>{const e=document.getElementById("override-pane"),o=document.getElementById("core-pane"),t=e.parentElement.parentElement;o&&e&&(o.classList.remove("active"),t.classList.contains("options-grid-form-half")&&(t.classList.remove("options-grid-form-half"),t.classList.add("options-grid-form-full")),typeof Storage<"u"&&localStorage.removeItem("coreSwitchState"))},c=()=>{const e=document.getElementById("override-pane"),o=document.getElementById("core-pane"),t=e.parentElement.parentElement;o&&e&&(o.classList.add("active"),t.classList.contains("options-grid-form-full")&&(t.classList.remove("options-grid-form-full"),t.classList.add("options-grid-form-half")),Joomla.editors.instances.jform_core&&Joomla.editors.instances.jform_core.refresh(),typeof Storage<"u"&&localStorage.setItem("coreSwitchState","checked"))};document.addEventListener("DOMContentLoaded",()=>{const e=document.getElementById("jform_show_diff1"),o=document.getElementById("jform_show_diff0"),t=document.getElementById("jform_show_core1"),n=document.getElementById("jform_show_core0");e&&o&&(e.addEventListener("click",i),o.addEventListener("click",f)),t&&n&&(t.addEventListener("click",c),n.addEventListener("click",d)),typeof Storage<"u"&&localStorage.getItem("coreSwitchState")&&t&&(t.checked=!0,n.checked=!1,c()),typeof Storage<"u"&&localStorage.getItem("diffSwitchState")&&e&&(e.checked=!0,o.checked=!1,i())})})();

The same content is in 28 releases, Joomla 4.4.1-rc1 to 4.4.14. See them all, or every version of this file.