CoreFiles by mySites.guru
two-factor-list.js16 lines, 558 bytes, from Joomla_4.2.2-Stable-Full_Package.zip
Raw History Compare with 4.2.1
md5
ae2adfd6fcd5a889cb2808cba7e4e8d1
sha1
554c5c9ad31bf97719adb6939cdc8478dee923f0
sha256
f9b8bd9f60d9d6c6f8b7e6d12f4a65303ea737a27f817cd2aec1818b9439229a
/**
 * @copyright   (C) 2022 Open Source Matters, Inc. <https://www.joomla.org>
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */
((Joomla, window) => {

  document.addEventListener('DOMContentLoaded', () => {
    [].slice.call(document.querySelectorAll('.com-users-methods-list-method-record-delete')).forEach(el => {
      el.addEventListener('click', event => {
        if (!window.confirm(Joomla.Text._('JGLOBAL_CONFIRM_DELETE'))) {
          event.preventDefault();
        }
      });
    });
  });
})(Joomla, window);

The same content is in 21 releases, Joomla 4.2.0-beta1 to 4.2.9. See them all, or every version of this file.