芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/.trash/media.8/com_menus/js/admin-items-modal.min.js
((t,e)=>{window.jSelectMenuItem=(e,a,n,o,r,l)=>{let i="";if(!t.getOptions("xtd-menus"))throw window.parent.Joomla.Modal.getCurrent().close(),new Error("core.js was not properly initialised");const d=t.getOptions("xtd-menus").editor;""!==l&&(i="&lang=");const g=`
${a}
`;window.parent.Joomla.editors.instances[d].getSelection()?window.parent.Joomla.editors.instances[d].replaceSelection(`
${window.parent.Joomla.editors.instances[d].getSelection()}
`):window.parent.Joomla.editors.instances[d].replaceSelection(g),window.parent.Joomla&&window.parent.Joomla.Modal&&window.parent.Joomla.Modal.getCurrent().close()};[].slice.call(e.querySelectorAll(".select-link")).forEach((t=>{t.addEventListener("click",(t=>{t.preventDefault();const e=t.target.getAttribute("data-function");"jSelectMenuItem"===e?window[e](t.target.getAttribute("data-id"),t.target.getAttribute("data-title"),t.target.getAttribute("data-uri"),null,null,t.target.getAttribute("data-language")):window.parent[e](t.target.getAttribute("data-id"),t.target.getAttribute("data-title"),null,null,t.target.getAttribute("data-uri"),t.target.getAttribute("data-language"),null),window.parent.Joomla.Modal&&window.parent.Joomla.Modal.getCurrent().close()}))}))})(Joomla,document);