芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/.trash/media.2/com_workflow/js/admin-items-workflow-buttons.min.js
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")}))}}()}))}));