CoreFiles by mySites.guru
admin-multilangstatus.js28 lines, 955 bytes, from Joomla_4.0.0-beta7-Beta-Full_Package.zip
Raw History Compare with 4.0.0-beta6
md5
faccd4360656e20ae54ec018a85a3f19
sha1
500c9c8d7340b3010b0068441572c62dcdc5e51c
sha256
257c638b867c1f79db2b99bf6ea2810a3bcba8361febad70078c2190143670b0
/**
* 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
 */
(function () {
  'use strict';

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

    if (multilangueModal) {
      // Clone the modal element
      var 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.