CoreFiles by mySites.guru
admin-users-user.js34 lines, 1,081 bytes, from Joomla_4.0.0-alpha5-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha3
md5
7b182a4c2e5bcf336d96999a8bf4db48
sha1
a3690da9aefaa549c9498053937eefa193186b95
sha256
45d32d1a0140747c430ce84518a59558a9900eb2281702f8e405e9bf8ff25275
/**
* 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 - 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 () {
      var method = document.getElementById('jform_twofactor_method');
      if (method) {
        var selectedPane = 'com_users_twofactor_' + method.value;
        var twoFactorForms = [].slice.call(document.querySelectorAll('#com_users_twofactor_forms_container > div'));
        twoFactorForms.forEach(function (value) {
          var id = value.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.