CoreFiles by mySites.guru
admin-login.js28 lines, 727 bytes, from Joomla_4.0.0-alpha3-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha2
md5
7090edb29a4aa0eb0fd9252f42a4bfec
sha1
de044439487b96b47ca75a83d561edd47a2da75c
sha256
3cc82e471c14893b913d1973d59858635adeed5326807359b97faf7f28338630
/**
 * @copyright  Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved.
 * @license    GNU General Public License version 2 or later; see LICENSE.txt
 */

(function() {
	'use strict';

	var btn = document.getElementById('btn-login-submit');
	if (btn) {
		btn.addEventListener('click', function(e) {
			e.preventDefault();
			var form = document.getElementById('form-login');
			if (form && document.formvalidator.isValid(form)) {
				Joomla.submitbutton('login')
			}
		});
	}

	var formTmp = document.querySelector('.login-initial');
	if (formTmp) {
		formTmp.style.display = 'block';
		if (!document.querySelector('joomla-alert')) {
			document.getElementById('mod-login-username').focus();
		}
	}

})();

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