CoreFiles by mySites.guru
modal-fields.min.js1 lines, 2,159 bytes, from Joomla_4.0.0-alpha6-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha5
md5
fc69cf6b6e7cebef3f09829cf8ff3d10
sha1
97ff700fadeb836033f6993e0aa10ab943a8e531
sha256
3a491a00efa5b7bafbd83259526dfa3da626dd697ceeac7fba45dd0475c7f296
!function(){"use strict";window.processModalParent=function(e,t,n,d,o,l,a){var s=document.getElementById(e+"_id"),m=document.getElementById(e+"_name");return t=t||"",n=n||"",d=d||"",a=a||"",o=o||"",l=l||"",t?(s.value=t,m.value=n,document.getElementById(e+"_select")&&document.getElementById(e+"_select").classList.add("sr-only"),document.getElementById(e+"_new")&&document.getElementById(e+"_new").classList.add("sr-only"),document.getElementById(e+"_edit")&&document.getElementById(e+"_edit").classList.remove("sr-only"),document.getElementById(e+"_clear")&&document.getElementById(e+"_clear").classList.remove("sr-only")):(s.value="",m.value=s.getAttribute("data-text"),document.getElementById(e+"_select")&&document.getElementById(e+"_select").classList.remove("sr-only"),document.getElementById(e+"_new")&&document.getElementById(e+"_new").classList.remove("sr-only"),document.getElementById(e+"_edit")&&document.getElementById(e+"_edit").classList.add("sr-only"),document.getElementById(e+"_clear")&&document.getElementById(e+"_clear").classList.add("sr-only")),"1"==s.getAttribute("data-required")&&(document.formvalidator.validate(s),document.formvalidator.validate(m)),!1},window.processModalEdit=function(e,t,n,d,o,l,a,s){l=l||d.toLowerCase()+"-form",a=a||"jform_id",s=s||"jform_title";var m=e.parentNode.parentNode.parentNode.parentNode.id,r=o,c=document.getElementById(m).getElementsByTagName("iframe")[0];c.id="Frame_"+m;var i=c.firstChild;return"cancel"===o?(c.contentWindow.Joomla.submitbutton(d.toLowerCase()+"."+o),Joomla.Modal.getCurrent().close()):(c.addEventListener("load",function(){(i=this.firstChild).getElementById(a)&&"0"!=i.getElementById(a).value&&(window.processModalParent(t,i.getElementById(a).value,i.getElementById(s).value),"save"===o&&window.processModalEdit(e,t,"edit",d,"cancel",l,a,s)),c.classList.remove("sr-only")}),i.formvalidator.isValid(i.getElementById(l))&&("save"===o&&(r="apply",c.classList.add("sr-only")),c.contentWindow.Joomla.submitbutton(d.toLowerCase()+"."+r))),!1},window.processModalSelect=function(e,t,n,d,o,l,a,s){return window.processModalParent(t,n,d,o,a,s,l),Joomla.Modal.getCurrent().close(),!1}}();

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