[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/media/mod_multilangstatus/js/ -> admin-multilangstatus-es5.js (source)

   1  (function () {
   2    'use strict';
   3  
   4    /**
   5     * @copyright  (C) 2018 Open Source Matters, Inc. <https://www.joomla.org>
   6     * @license    GNU General Public License version 2 or later; see LICENSE.txt
   7     */
   8    // We need to use JS to move the modal before the closing body tag to avoid stacking issues
   9    var multilangueModal = document.getElementById('multiLangModal');
  10  
  11    if (multilangueModal) {
  12      var bsModal = bootstrap.Modal.getInstance(multilangueModal);
  13  
  14      if (bsModal) {
  15        bsModal.dispose();
  16      } // Append the modal before closing body tag
  17  
  18  
  19      document.body.appendChild(multilangueModal); // Modal was moved so it needs to be re initialised
  20  
  21      Joomla.initialiseModal(multilangueModal);
  22    }
  23  
  24  })();


Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer