CoreFiles by mySites.guru
admin-users-user.js34 lines, 1,090 bytes, from Joomla_4.0.0-beta1-Beta-Full_Package.zip
Raw History Compare with 3.9.0-beta4
md5
8697fee9e340c52f176a7bc31ed07143
sha1
da0193b4b10668bd9781aa2c7dcad413f55bc740
sha256
145b06f9b4ddd7d6cbd235ed93271b0db03c6120437b8080ac0fae87da57f5b8
/**
* 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
 */
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_".concat(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).classList.add('hidden');
          } else {
            document.getElementById(id).classList.remove('hidden');
          }
        });
      }
    };
  });
})(Joomla);

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