CoreFiles by mySites.guru
admin-multilangstatus.js19 lines, 650 bytes, from Joomla_4.4.13-Stable-Full_Package.zip
Raw History Compare with 4.4.12
md5
d5663e470945502c1e30d71c8c7f6266
sha1
904a30faf185c601cdcae0c82d0e12e136ed7c14
sha256
ec6833e9bcacb9eb71eb07bc26b4cf58b8b0f3780022daa23597b9866653400b
/**
 * @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 75 releases, Joomla 4.3.0-alpha1 to 5.1.0-alpha1. See them all, or every version of this file.