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

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