CoreFiles by mySites.guru
admin-multilangstatus.es6.js28 lines, 947 bytes, from Joomla_4.0.0-beta7-Beta-Full_Package.zip
Raw History Compare with 4.0.0-beta6
md5
9dbc1c04ab21f62c0e7dab49d257423d
sha1
ed5e0ff28161e24da9fc9682ffe102498b1a1bcb
sha256
e467eede8d472ed46e77446b32d914df17d10ec6632be94bcaddc3b385191bd1
/**
* PLEASE DO NOT MODIFY THIS FILE. WORK ON THE ES6 VERSION.
* OTHERWISE YOUR CHANGES WILL BE REPLACED ON THE NEXT BUILD.
**/

/**
 * @copyright  (C) 2018 Open Source Matters, Inc. <https://www.joomla.org>
 * @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); // Modal was moved so it needs to be re initialised

      Joomla.initialiseModal(clone);
    }
  });
})();

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