CoreFiles by mySites.guru
admin-login-es5.js24 lines, 647 bytes, from Joomla_4.0.2-Stable-Full_Package.zip
Raw History Compare with 4.0.1
md5
a02db1e14f0388b8f28a8be986edece5
sha1
2a6fbf88948fb65e9870811330c710fff6b83c72
sha256
c445ec374cb4da93544d0ebc9da539f8d956ef25a59fd8c573e4387963f7fa02
(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 23 releases, Joomla 4.0.0-rc1 to 4.1.0-beta2. See them all, or every version of this file.