[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/media/com_workflow/js/ -> admin-items-workflow-buttons.min.js (source)

   1  Joomla=window.Joomla||{},Joomla.toggleAllNextElements=(t,e)=>{const n=(t=>{const e=[];do{e.push(t)}while(null!==(t=t.nextElementSibling));return e})(t);n.length&&n.forEach((t=>{t.classList.contains(e)?t.classList.remove(e):t.classList.add(e)}))},document.addEventListener("DOMContentLoaded",(()=>{const t=document.getElementById("toolbar-status-group");if(!t)return;const e=[].slice.call(t.querySelectorAll(".button-transition")),n=t.querySelector(".button-transition-headline"),o=t.querySelector(".button-transition-separator"),s=document.querySelector("table.itemList");let l=[],r=[];s&&(l=[].slice.call(s.querySelectorAll("tbody tr"))),s&&s.addEventListener("click",(()=>{e.forEach((t=>{t.parentNode.classList.add("d-none")})),n&&n.classList.add("d-none"),o&&o.classList.add("d-none"),r=[],l.forEach((t=>{const e=t.querySelector("input[type=checkbox]");if(e.checked){const t=e.closest("tr");n=t,r.push(n.getAttribute("data-transitions").split(","))}var n})),function(){if(r.length){let e=r.shift();for(;r.length;){const t=r.shift();e=e.filter((e=>-1!==t.indexOf(e)))}e.length&&(n&&n.classList.remove("d-none"),o&&o.classList.remove("d-none")),e.forEach((e=>{const n=t.querySelector(`.transition-$e}`);n&&n.parentNode.classList.remove("d-none")}))}}()}))}));


Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer