CoreFiles by mySites.guru
two-factor-switcher.js28 lines, 947 bytes, from Joomla_4.0.0-beta1-Beta-Full_Package.zip
Raw History Compare with 3.9.0-beta4
md5
acd4f4323c0d3201c6aa1b0a6cf20ee5
sha1
d337ce43642700b62a703a5fdd2ef4b0a775a2db
sha256
f355edcd9daf04d526f222a98fc97ee7415fccdc30c92c0128a19eab932975f1
/**
* 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 selectedPane = "com_users_twofactor_".concat(document.getElementById('jform_twofactor_method').value);
      [].slice.call(document.querySelectorAll('#com_users_twofactor_forms_container>div')).forEach(function (el) {
        if (el.id !== selectedPane) {
          document.getElementById(el.id).classList.add('hidden');
          return;
        }

        document.getElementById(el.id).classList.remove('hidden');
      });
    };
  });
})(Joomla);

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