CoreFiles by mySites.guru
associations-edit.es6.min.js1 lines, 1,516 bytes, from Joomla_4.0.0-alpha6-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha5
md5
fe836c209193b67ad11de86463fc0070
sha1
18f578bfcf169ab619a8fc6fe18a7a6570d79be0
sha256
a225bc67082f51b1b1ddcdb40c68289d3bdd1d38fc3901dc74cffcc8cf9a2599
Joomla=window.Joomla||{},((e,o)=>{"use strict";e.hideAssociation=((e,s)=>{[].slice.call(o.querySelectorAll("#associations .control-group")).forEach(o=>{const t=o.querySelector(".control-label label");if(t){t.getAttribute("for").replace("_id","")===`${e}_associations_${s.replace("-","_")}`&&(o.style.display="none")}})}),e.showAssociationMessage=(()=>{const s=[].slice.call(o.querySelectorAll("#associations .control-group")),t=o.getElementById("associations");if(t){const s=o.createElement("joomla-alert");s.innerHTML=e.JText._("JGLOBAL_ASSOC_NOT_POSSIBLE"),t.insertAdjacentElement("afterbegin",s)}s.forEach(e=>{e.style.display="none"})}),o.addEventListener("DOMContentLoaded",()=>{const s=e.getOptions("system.associations.edit"),t=s.formControl||"jform",a=o.getElementById(`${t}_language`);1===parseInt(s.hidden,10)?e.showAssociationMessage():a&&e.hideAssociation(t,a.value),a&&a.addEventListener("change",s=>{e.removeMessages();let a=!1;[].slice.call(o.querySelectorAll("#associations .control-group")).forEach(e=>{const s=e.querySelector(".control-label label").getAttribute("for").replace("_id","").replace("jform_associations_","");e.style.display="block",a||""===o.getElementById(`${t}_associations_${s}_id`).value||(a=!0);const l=o.getElementById(`${t}_associations_${s}_clear`);l.onclick?l.onclick():l.click&&l.click()}),a&&e.renderMessages({warning:[e.JText._("JGLOBAL_ASSOCIATIONS_RESET_WARNING")]});const l=s.target.value;"*"===l?e.showAssociationMessage():e.hideAssociation(t,l)})})})(Joomla,document);

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.