[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/media/mod_login/js/ -> admin-login-es5.js (source)

   1  (function () {
   2    'use strict';
   3  
   4    /**
   5     * @copyright  (C) 2018 Open Source Matters, Inc. <https://www.joomla.org>
   6     * @license    GNU General Public License version 2 or later; see LICENSE.txt
   7     */
   8    (function (Joomla, document) {
   9      document.addEventListener('DOMContentLoaded', function () {
  10        var btn = document.getElementById('btn-login-submit');
  11  
  12        if (btn) {
  13          btn.addEventListener('click', function (event) {
  14            event.preventDefault();
  15  
  16            if (document.formvalidator.isValid(btn.form)) {
  17              Joomla.submitbutton('login');
  18            }
  19          });
  20        }
  21      });
  22    })(window.Joomla, document);
  23  
  24  })();


Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer