CoreFiles by mySites.guru
admin-help.min.js4 lines, 1,932 bytes, from Joomla_6.2.0-beta2-Beta-Full_Package.zip
Raw History Compare with 6.2.0-beta1
md5
d23b7fd30d3319adeeb2b51add44788b
sha1
8249846be83f62612a368f8f4141d6d4bc997e48
sha256
6cfdf246ae718c279b919714c98c90003b339d7ba7b645efa21e868e6f8f1fc9
/**
  * @copyright   (C) 2021 Open Source Matters, Inc. <https://www.joomla.org>
  * @license     GNU General Public License version 2 or later; see LICENSE.txt
  */document.addEventListener("DOMContentLoaded",function(l){new MetisMenu("#helpmenu",{toggle:!0});const s=document.getElementById("helpmenu");s&&s.querySelectorAll("a").forEach(e=>e.addEventListener("click",()=>{if(e.classList.contains("has-arrow"))s.querySelectorAll("a.has-arrow").forEach(t=>{e.classList.contains("mm-collapsed")&&e.classList.remove("active")});else{const t=e.dataset.id;t&&(s.querySelectorAll("a:not(has-arrow)").forEach(i=>{i.dataset.id!==t?(i.classList.remove("active"),i.removeAttribute("aria-current")):(e.classList.add("active"),i.setAttribute("aria-current","page"))}),window.scroll(0,0)),localStorage.setItem("helpIndex.lastClick",t);const a=document.querySelector('button[data-bs-target="#help-index"]');a&&a.offsetParent!==null&&(document.querySelector("nav#help-index").classList.add("collapse"),document.querySelector("nav#help-index").classList.remove("show"))}}));function c(){let e=localStorage.getItem("helpIndex.lastClick");e||(e="start-here");const t=s.querySelector(`a[data-id="${e}"]`);if(!t)return;const a=[];let r=t.closest("li");for(;r&&r!==s;){const n=r.parentElement.closest("li");if(n){const o=n;o&&a.unshift(o)}r=n}for(const i of a)i.classList.add("mm-active"),i.querySelector("ul").classList.add("mm-show"),i.querySelector("a").classList.add("active"),i.querySelector("a").setAttribute("aria-expanded",!0);t.classList.add("active"),t.setAttribute("aria-current","page"),t.click()}c()});const breakpoints={md:768};function getCurrentBreakpoint(){return window.innerWidth<breakpoints.md?"sm":"xxl"}let currentBreakpoint=getCurrentBreakpoint(),resizeTimeout;window.addEventListener("resize",()=>{clearTimeout(resizeTimeout),resizeTimeout=setTimeout(()=>{getCurrentBreakpoint()!==currentBreakpoint&&location.reload()},300)});

The same content is in 12 releases, Joomla 6.2.0-alpha1 to 6.3.0-alpha1. See them all, or every version of this file.