CoreFiles by mySites.guru
admin-login.js20 lines, 557 bytes, from Joomla_4.2.2-Stable-Full_Package.zip
Raw History Compare with 4.2.1
md5
9461b77be3953a6da04bd9195f89f79c
sha1
2010ceb74b22311b29a9cc846a52fea2f4ca652b
sha256
c07a822650c9bdae2dd60ee1a559f493cb950f049d682608d46659f1046ffbd1
/**
 * @copyright  (C) 2018 Open Source Matters, Inc. <https://www.joomla.org>
 * @license    GNU General Public License version 2 or later; see LICENSE.txt
 */
((Joomla, document) => {

  document.addEventListener('DOMContentLoaded', () => {
    const btn = document.getElementById('btn-login-submit');

    if (btn) {
      btn.addEventListener('click', event => {
        event.preventDefault();

        if (document.formvalidator.isValid(btn.form)) {
          Joomla.submitbutton('login');
        }
      });
    }
  });
})(window.Joomla, document);

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