CoreFiles by mySites.guru
admin-login.es6.js26 lines, 714 bytes, from Joomla_4.0.0-beta5-Beta-Full_Package.zip
Raw History Compare with 4.0.0-beta4
md5
8740784ebf7741dfeb51d3dbdf3e07a1
sha1
13d0e4be6f322b44cfce3fa97a6bd56b29e85dc1
sha256
58e4f95b2b9bbc05e106681a3fb14c66d1d0398054ea7516023507fed3d1a13f
/**
* PLEASE DO NOT MODIFY THIS FILE. WORK ON THE ES6 VERSION.
* OTHERWISE YOUR CHANGES WILL BE REPLACED ON THE NEXT BUILD.
**/

/**
 * @copyright  Copyright (C) 2005 - 2020 Open Source Matters, Inc. All rights reserved.
 * @license    GNU General Public License version 2 or later; see LICENSE.txt
 */
((Joomla, document) => {
  'use strict';

  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);

No other release has this exact content. See every version of this file.