CoreFiles by mySites.guru
admin-multilangstatus.js19 lines, 648 bytes, from Joomla_4.2.2-Stable-Full_Package.zip
Raw History Compare with 4.2.1
md5
8677a6f47c87cd94b987f6013dbe273e
sha1
0c74efa22273b3bd805b1a5042a4381218c05cab
sha256
e4f86ee7ffb87b4fbda81eb60f34c7f025ae420420af7063ee94e41cac6fef30
/**
 * @copyright  (C) 2018 Open Source Matters, Inc. <https://www.joomla.org>
 * @license    GNU General Public License version 2 or later; see LICENSE.txt
 */
// 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) {
  const bsModal = bootstrap.Modal.getInstance(multilangueModal);

  if (bsModal) {
    bsModal.dispose();
  } // Append the modal before closing body tag


  document.body.appendChild(multilangueModal); // Modal was moved so it needs to be re initialised

  Joomla.initialiseModal(multilangueModal);
}

The same content is in 68 releases, Joomla 4.0.0-rc1 to 4.2.9. See them all, or every version of this file.