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

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