CoreFiles by mySites.guru
admin-login.js26 lines, 732 bytes, from Joomla_4.0.0-beta5-Beta-Full_Package.zip
Raw History Compare with 4.0.0-beta4
md5
cbf78671dcd3bc26ebc98df4b14d4700
sha1
328da21a5d2f6bed29760ef2300c4a2400ae9212
sha256
8f29e73fdb6e08124093c41580db4991f4e5426a83eddb8aeecab5cf00f87d07
/**
* 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
 */
(function (Joomla, document) {
  'use strict';

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

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