CoreFiles by mySites.guru
passwordview.min.js1 lines, 949 bytes, from Joomla_4.2.8-Stable-Full_Package.zip
Raw History Compare with 4.2.7
md5
560d070f399dd202fe252ef81cb84423
sha1
bae2911b22f836c780af199d956a1b22c8604694
sha256
ffc17bbe585114a96da62807eeabfdd99fbccd436a24ef49578cfba01473a967
(e=>{e.addEventListener("DOMContentLoaded",(()=>{[].slice.call(e.querySelectorAll('input[type="password"]')).forEach((e=>{const t=e.parentNode.querySelector(".input-password-toggle");t&&t.addEventListener("click",(()=>{const s=t.firstElementChild,o=t.lastElementChild;"password"===e.type?(s.classList.remove("icon-eye"),s.classList.add("icon-eye-slash"),e.type="text",e.focus(),o.innerText=Joomla.Text._("JHIDEPASSWORD")):"text"===e.type&&(s.classList.add("icon-eye"),s.classList.remove("icon-eye-slash"),e.type="password",e.focus(),o.innerText=Joomla.Text._("JSHOWPASSWORD"))}));const s=e.parentNode.querySelector(".input-password-modify");s&&s.addEventListener("click",(()=>{!0===!s.classList.contains("locked")?(s.classList.add("locked"),e.value="",e.setAttribute("disabled",""),s.innerText=Joomla.Text._("JMODIFY")):(s.classList.remove("locked"),e.removeAttribute("disabled"),e.focus(),s.innerText=Joomla.Text._("JCANCEL"))}))}))}))})(document);

The same content is in 106 releases, Joomla 4.0.0-rc1 to 5.0.0. See them all, or every version of this file.