- md5
- f0343e1ce1374689462fef5fe9fac887
- sha1
- 5b985f6801a79a2e6f42b1b7ebd38635d192c639
- sha256
- fddc7a9187b2a2b8e3bf34647681758ec9cbd0651d5e9bbc3d49ee95d603bd25
!function(){"use strict";window.processModalParent=function(e,t,n,d,o,l,a){var r=document.getElementById(e+"_id"),m=document.getElementById(e+"_name");return t=t||"",n=n||"",d=d||"",a=a||"",o=o||"",l=l||"",t?(r.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")):(r.value="",m.value=r.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"==r.getAttribute("data-required")&&(document.formvalidator.validate(r),document.formvalidator.validate(m)),!1},window.processModalEdit=function(e,t,n,d,o,l,a,r){l=l||d.toLowerCase()+"-form",a=a||"jform_id",r=r||"jform_title";var m=e.parentNode.parentNode.parentNode.parentNode.id,s=o;jQuery("#"+m+" iframe").get(0).id="Frame_"+m;var c=jQuery("#Frame_"+m).contents().get(0);return"cancel"===o?(document.getElementById("Frame_"+m).contentWindow.Joomla.submitbutton(d.toLowerCase()+"."+o),jQuery("#"+m).modal("hide")):(jQuery("#Frame_"+m).on("load",function(){(c=jQuery(this).contents().get(0)).getElementById(a)&&"0"!=c.getElementById(a).value&&(window.processModalParent(t,c.getElementById(a).value,c.getElementById(r).value),"save"===o&&window.processModalEdit(e,t,"edit",d,"cancel",l,a,r)),jQuery("#"+m+" iframe").removeClass("sr-only")}),c.formvalidator.isValid(c.getElementById(l))&&("save"===o&&(s="apply",jQuery("#"+m+" iframe").addClass("sr-only")),document.getElementById("Frame_"+m).contentWindow.Joomla.submitbutton(d.toLowerCase()+"."+s))),!1},window.processModalSelect=function(e,t,n,d,o,l,a,r){return window.processModalParent(t,n,d,o,a,r,l),jQuery("#ModalSelect"+e+"_"+t).modal("hide"),!1}}();
The same content is in 2 releases, Joomla 4.0.0-alpha2 to 4.0.0-alpha3. See them all, or every version of this file.