芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/acancehyucatan.gob.mx/media/system/js/fields/modal-fields.min.js
!function(){"use strict";window.processModalParent=function(e,t,d,n,o,a,l){var m=document.getElementById(e+"_id"),c=document.getElementById(e+"_name");return d=d||"",n=n||"",l=l||"",o=o||"",a=a||"",(t=t||"")?(m.value=t,c.value=d,document.getElementById(e+"_select")&&document.getElementById(e+"_select").classList.add("hidden"),document.getElementById(e+"_new")&&document.getElementById(e+"_new").classList.add("hidden"),document.getElementById(e+"_edit")&&document.getElementById(e+"_edit").classList.remove("hidden"),document.getElementById(e+"_clear")&&document.getElementById(e+"_clear").classList.remove("hidden"),document.getElementById(e+"_propagate")&&document.getElementById(e+"_propagate").classList.remove("hidden")):(m.value="",c.value=m.getAttribute("data-text"),document.getElementById(e+"_select")&&document.getElementById(e+"_select").classList.remove("hidden"),document.getElementById(e+"_new")&&document.getElementById(e+"_new").classList.remove("hidden"),document.getElementById(e+"_edit")&&document.getElementById(e+"_edit").classList.add("hidden"),document.getElementById(e+"_clear")&&document.getElementById(e+"_clear").classList.add("hidden"),document.getElementById(e+"_propagate")&&document.getElementById(e+"_propagate").classList.add("hidden")),"1"==m.getAttribute("data-required")&&(document.formvalidator.validate(m),document.formvalidator.validate(c)),!1},window.processModalEdit=function(e,t,d,n,o,a,l,m){a=a||n.toLowerCase()+"-form",l=l||"jform_id",m=m||"jform_title";var c=e.parentNode.parentNode.parentNode.parentNode.id,s=o,i=document.getElementById(c).getElementsByTagName("iframe")[0];i.id="Frame_"+c;var r=i.contentDocument;return"cancel"===o?(i.contentWindow.Joomla.submitbutton(n.toLowerCase()+"."+o),Joomla.Modal.getCurrent().close()):(i.addEventListener("load",(function(){(r=this.contentDocument).getElementById(l)&&"0"!=r.getElementById(l).value&&(window.processModalParent(t,r.getElementById(l).value,r.getElementById(m).value),"save"===o&&window.processModalEdit(e,t,"edit",n,"cancel",a,l,m)),i.classList.remove("visually-hidden")})),r.formvalidator.isValid(r.getElementById(a))&&("save"===o&&(s="apply",i.classList.add("visually-hidden")),i.contentWindow.Joomla.submitbutton(n.toLowerCase()+"."+s))),!1},window.processModalSelect=function(e,t,d,n,o,a,l,m){return window.processModalParent(t,d,n,o,l,m,a),Joomla.Modal.getCurrent()&&Joomla.Modal.getCurrent().close(),!1}}();