CoreFiles by mySites.guru
two-factor-list.js17 lines, 544 bytes, from Joomla_5.3.2-Stable-Full_Package.zip
Raw History Compare with 5.3.1
md5
e58b35b6d189d763a9521f3e763b3a29
sha1
74047c32773549a6f71ff88f5887f9a725bd4e67
sha256
e58d316a1469b405aaac5781b953dae747919e14996c8777711fce6f2f810a08
/**
 * @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', () => {
    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 134 releases, Joomla 5.1.0-beta2 to 6.2.1. See them all, or every version of this file.