CoreFiles by mySites.guru
admin-multilangstatus.es6.js24 lines, 755 bytes, from Joomla_4.0.0-alpha5-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha3
md5
b37bb60288e6eaa26e12ee892ca1577f
sha1
da90f69826a6e67f14fd4c7f3557faf1750dfe2c
sha256
12610636255d84dd9e96d254c37f8f2e5089219d7acdb532e221c2597fed2f3b
/**
 * @copyright  Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved.
 * @license    GNU General Public License version 2 or later; see LICENSE.txt
 */

(() => {
  'use strict';

  document.addEventListener('DOMContentLoaded', () => {
    // We need to use JS to move the modal before the closing body tag to avoid stacking issues
    const multilangueModal = document.getElementById('multiLangModal');

    if (multilangueModal) {
      // Clone the modal element
      const clone = multilangueModal.cloneNode(true);

      // Remove the original modal element
      multilangueModal.parentNode.removeChild(multilangueModal);

      // Append clone before closing body tag
      document.body.appendChild(clone);
    }
  });
})();

The same content is in 2 releases, Joomla 4.0.0-alpha5 to 4.0.0-alpha6. See them all, or every version of this file.