CoreFiles by mySites.guru
admin-users-user.js37 lines, 910 bytes, from Joomla_4.0.0-alpha3-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha2
md5
52071591592f9cdd74ec4b43f34dd24f
sha1
8f4f531b79f7668d6285034145a86384e4a02011
sha256
dfd176d56688a248882b273356645d60d81706ae607229374a0fa005b670b2e0
/**
 * @copyright   Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

Joomla = window.Joomla || {};

(function(Joomla) {
	'use strict';

	document.addEventListener('DOMContentLoaded', function() {

		Joomla.twoFactorMethodChange = function(e) {
			var method = document.getElementById('jform_twofactor_method');

			if (method) {
				var selectedPane   = 'com_users_twofactor_' + method.value,
				    twoFactorForms = document.querySelectorAll('#com_users_twofactor_forms_container > div');

				for (var i = 0; i < twoFactorForms.length; i++) {
					var id = twoFactorForms[i].id;

					if (id != selectedPane)
					{
						document.getElementById(id).style.display = 'none';
					}
					else
					{
						document.getElementById(id).style.display = 'block';
					}
				}
			}
		};

	});

})(Joomla);

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