CoreFiles by mySites.guru
two-factor-switcher.js28 lines, 943 bytes, from Joomla_4.0.0-alpha6-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha5
md5
a324f59c9d7245bcd2c1d1a9456340e9
sha1
fe94d23188dd789d2fe46c443956877b0e1c152f
sha256
7bd930af7161c687229c7b6113afb3e79590b5a092496e6e48f2fc78c41c2368
/**
* 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 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).style.display = 'none';
          return;
        }

        document.getElementById(el.id).style.display = 'block';
      });
    };
  });
})(Joomla);

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