CoreFiles by mySites.guru
passwordview.min.js4 lines, 1,104 bytes, from Joomla_5.2.0-Stable-Full_Package.zip
Raw History Compare with 5.1.4
md5
d2a409b9c1a3d68ca2b77c0be9191187
sha1
7a48811dc5605f94fa90513f34bc7b5c54e91043
sha256
5072764e429b12fec1aaea6ac6237f42818e1265c81661cfc75df7ffb8097db8
/**
 * @copyright   (C) 2018 Open Source Matters, Inc. <https://www.joomla.org>
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */(l=>{l.addEventListener("DOMContentLoaded",()=>{[].slice.call(l.querySelectorAll('input[type="password"]')).forEach(e=>{const o=e.parentNode.querySelector(".input-password-toggle");o&&o.addEventListener("click",()=>{const t=o.firstElementChild,c=o.lastElementChild;e.type==="password"?(t.classList.remove("icon-eye"),t.classList.add("icon-eye-slash"),e.type="text",e.focus(),c.innerText=Joomla.Text._("JHIDEPASSWORD")):e.type==="text"&&(t.classList.add("icon-eye"),t.classList.remove("icon-eye-slash"),e.type="password",e.focus(),c.innerText=Joomla.Text._("JSHOWPASSWORD"))});const s=e.parentNode.querySelector(".input-password-modify");s&&s.addEventListener("click",()=>{!s.classList.contains("locked")===!0?(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 68 releases, Joomla 4.4.1-rc1 to 5.2.1. See them all, or every version of this file.