CoreFiles by mySites.guru
admin-login.js19 lines, 556 bytes, from Joomla_4.4.13-Stable-Full_Package.zip
Raw History Compare with 4.4.12
md5
1744e029c35834e4ca4432709d582554
sha1
325969463f0d4ba9690677f12bdd15ae309d53f2
sha256
b5d3ed0a07768f7038150e19400d2c121997640d87a79b3b764d922e83e03617
/**
 * @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 214 releases, Joomla 4.3.0-alpha1 to 6.3.0-alpha1. See them all, or every version of this file.