CoreFiles by mySites.guru
admin-language-edit-change-flag.es6.min.js1 lines, 419 bytes, from Joomla_4.0.0-alpha10-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha9
md5
c579063bebc0e3de7bfbe9371e772b01
sha1
c9504e8d6a3c86d3da9212f63bcddd2be2e91680
sha256
22cc1cc72677a1911fba33f30d9c01ef9d6e3668c09d16ef463aa5d1cece773c
document.addEventListener("DOMContentLoaded",()=>{document.getElementById("jform_image").addEventListener("change",a=>{const b=a.currentTarget.value,c=document.getElementById("flag").querySelector("img"),d="".concat(Joomla.getOptions("system.paths").rootFull,"/media/mod_languages/images/").concat(b,".gif");b?(c.setAttribute("src",d),c.setAttribute("alt",b)):(c.removeAttribute("src"),c.setAttribute("alt",""))},!1)});

The same content is in 5 releases, Joomla 4.0.0-alpha8 to 4.0.0-alpha12. See them all, or every version of this file.