CoreFiles by mySites.guru
passwordview.min.js4 lines, 1,240 bytes, from Joomla_5.2.2-Stable-Full_Package.zip
Raw History Compare with 5.2.1
md5
a335da40684937fe1913b72231b08c2a
sha1
09657a09da7b14786fd2d87567c78bbc3ef42cd1
sha256
91e093fa697a680f3387b0c9d831d0f3cca6c7e983cc7133a0ce54e5fefc4d07
/**
 * @copyright   (C) 2018 Open Source Matters, Inc. <https://www.joomla.org>
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */(l=>{function c(){[].slice.call(l.querySelectorAll('input[type="password"]')).forEach(e=>{const s=e.parentNode.querySelector(".input-password-toggle"),i=s.getAttribute("clickListener")==="true";s&&!i&&(s.setAttribute("clickListener","true"),s.addEventListener("click",()=>{const o=s.firstElementChild,a=s.lastElementChild;e.type==="password"?(o.classList.remove("icon-eye"),o.classList.add("icon-eye-slash"),e.type="text",e.focus(),a.innerText=Joomla.Text._("JHIDEPASSWORD")):e.type==="text"&&(o.classList.add("icon-eye"),o.classList.remove("icon-eye-slash"),e.type="password",e.focus(),a.innerText=Joomla.Text._("JSHOWPASSWORD"))}));const t=e.parentNode.querySelector(".input-password-modify");t&&t.addEventListener("click",()=>{!t.classList.contains("locked")===!0?(t.classList.add("locked"),e.value="",e.setAttribute("disabled",""),t.innerText=Joomla.Text._("JMODIFY")):(t.classList.remove("locked"),e.removeAttribute("disabled"),e.focus(),t.innerText=Joomla.Text._("JCANCEL"))})})}l.addEventListener("joomla:updated",c),l.addEventListener("DOMContentLoaded",c)})(document);

The same content is in 3 releases, Joomla 5.2.2-rc1 to 5.3.0-alpha1. See them all, or every version of this file.