芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/chocholayucatan.gob.mx/media/com_modules/js/admin-module-edit-es5.min.js
!function(){"use strict";Joomla=window.Joomla||{},function(n){n.submitbutton=function(e){if("module.cancel"===e||document.formvalidator.isValid(document.getElementById("module-form"))){n.submitform(e,document.getElementById("module-form"));var s=n.getOptions("module-edit");if(window.self!==window.top){if(window.parent.viewLevels){var t=document.getElementById("jform_position").value,a=document.getElementById("jform_title").value,i=document.querySelector("#jform_assignment").value,o=document.querySelector("#jform_published").value,l=document.querySelector("#jform_access").value,d=window.parent.document.getElementById("menus-"+s.itemId),c=window.parent.document.getElementById("tr-"+s.itemId),r=window.parent.document.getElementById("status-"+s.itemId);window.parent.inMenus=[],window.parent.numMenus=[].slice.call(document.querySelectorAll('input[name="jform[assigned][]"]')).length,[].slice.call(document.querySelectorAll('input[name="jform[assigned][]"]')).forEach((function(n){i>0&&n.checked&&window.parent.inMenus.push(parseInt(n.value,10)),i<0&&(n.checked||window.parent.inMenus.push(parseInt(n.value,10)))})),"-"===i&&(d.innerHTML=n.sanitizeHtml('
'+n.Text._("JNO")+"
"),c.classList.contains("no")&&0!==c.classList.length||c.classList.add("no")),0===parseInt(i,10)&&(d.innerHTML=n.sanitizeHtml('
'+n.Text._("JALL")+"
"),c.classList.contains("no")&&c.classList.remove("no")),parseInt(i,10)>0&&(window.parent.inMenus.indexOf(window.parent.menuId)>=0&&(window.parent.numMenus===window.parent.inMenus.length?(d.innerHTML=n.sanitizeHtml('
'+n.Text._("JALL")+"
"),(c.classList.contains("no")||0===c.classList.length)&&c.classList.remove("no")):(d.innerHTML=n.sanitizeHtml('
'+n.Text._("JYES")+"
"),c.classList.contains("no")&&c.classList.remove("no"))),window.parent.inMenus.indexOf(window.parent.menuId)<0&&(d.innerHTML=n.sanitizeHtml('
'+n.Text._("JNO")+"
"),c.classList.contains("no")||c.classList.add("no"))),parseInt(i,10)<0&&(window.parent.inMenus.indexOf(window.parent.menuId)>=0&&(window.parent.numMenus===window.parent.inMenus.length?(d.innerHTML=n.sanitizeHtml('
'+n.Text._("JALL")+"
"),c.classList.contains("no")&&c.classList.remove("no")):(d.innerHTML=n.sanitizeHtml('
'+n.Text._("JYES")+"
"),c.classList.contains("no")&&c.classList.remove("no"))),window.parent.inMenus.indexOf(window.parent.menuId)<0&&(d.innerHTML=n.sanitizeHtml('
'+n.Text._("JNO")+"
"),c.classList.contains("no")&&0!==c.classList.length||c.classList.add("no"))),1===parseInt(o,10)&&(r.innerHTML=n.sanitizeHtml('
'+n.Text._("JYES")+"
"),c.classList.contains("unpublished")&&c.classList.remove("unpublished")),0===parseInt(o,10)&&(r.innerHTML=n.sanitizeHtml('
'+n.Text._("JNO")+"
"),c.classList.contains("unpublished")&&0!==c.classList.length||c.classList.add("unpublished")),-2===parseInt(o,10)&&(r.innerHTML=n.sanitizeHtml('
'+n.Text._("JTRASHED")+"
"),c.classList.contains("unpublished")&&0!==c.classList.length||c.classList.add("unpublished")),document.formvalidator.isValid(document.getElementById("module-form"))&&(window.parent.document.querySelector("#title-"+s.itemId).innerText=a,window.parent.document.querySelector("#position-"+s.itemId).innerText=t,window.parent.document.querySelector("#access-"+s.itemId).innerHTML=n.sanitizeHtml(window.parent.viewLevels[l]))}"module.apply"!==e&&window.parent.Joomla.Modal.getCurrent().close()}}}}(Joomla)}();