CoreFiles by mySites.guru
modal-fields.min.js1 lines, 2,328 bytes, from Joomla_4.0.0-alpha9-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha8
md5
10b8e6b6c785edd977a02f2210877265
sha1
b34ed506b1a2e43c7e802977f736b0213cbacb49
sha256
edcdd77e0945a981dd68d6c680aca9ffd3de5c8c2bc621a2213806d5986137a1
!function(){"use strict";window.processModalParent=function(e,t,d,n,o,a,l){var m=document.getElementById(e+"_id"),s=document.getElementById(e+"_name");return t=t||"",d=d||"",n=n||"",l=l||"",o=o||"",a=a||"",t?(m.value=t,s.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")&&jQuery("#"+e+"_propagate").removeClass("hidden")):(m.value="",s.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")&&jQuery("#"+e+"_propagate").addClass("hidden")),"1"==m.getAttribute("data-required")&&(document.formvalidator.validate(m),document.formvalidator.validate(s)),!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 s=e.parentNode.parentNode.parentNode.parentNode.id,r=o,i=document.getElementById(s).getElementsByTagName("iframe")[0];i.id="Frame_"+s;var c=i.firstChild;return"cancel"===o?(i.contentWindow.Joomla.submitbutton(n.toLowerCase()+"."+o),Joomla.Modal.getCurrent().close()):(i.addEventListener("load",function(){(c=this.firstChild).getElementById(l)&&"0"!=c.getElementById(l).value&&(window.processModalParent(t,c.getElementById(l).value,c.getElementById(m).value),"save"===o&&window.processModalEdit(e,t,"edit",n,"cancel",a,l,m)),i.classList.remove("sr-only")}),c.formvalidator.isValid(c.getElementById(a))&&("save"===o&&(r="apply",i.classList.add("sr-only")),i.contentWindow.Joomla.submitbutton(n.toLowerCase()+"."+r))),!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().close(),!1}}();

The same content is in 2 releases, Joomla 4.0.0-alpha8 to 4.0.0-alpha9. See them all, or every version of this file.