CoreFiles by mySites.guru
admin-login-es5.js24 lines, 647 bytes, from Joomla_4.2.2-Stable-Full_Package.zip
Raw History Compare with 4.2.1
md5
4cfb831551a0aeda0892a078dd320860
sha1
6c3cfa5e97f1fb8ffa11357018696ef662fac76c
sha256
f0ff577e9a7e8635fb6a1f691923c6ef5ee2d7db2b461192915e9a40bf80cff6
(function () {
  'use strict';

  /**
   * @copyright  (C) 2018 Open Source Matters, Inc. <https://www.joomla.org>
   * @license    GNU General Public License version 2 or later; see LICENSE.txt
   */
  (function (Joomla, document) {
    document.addEventListener('DOMContentLoaded', function () {
      var btn = document.getElementById('btn-login-submit');

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

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

})();

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