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

No other release has this exact content. See every version of this file.