[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/administrator/components/com_modules/tmpl/module/ -> modal.php (source)

   1  <?php
   2  
   3  /**
   4   * @package     Joomla.Administrator
   5   * @subpackage  com_modules
   6   *
   7   * @copyright   (C) 2009 Open Source Matters, Inc. <https://www.joomla.org>
   8   * @license     GNU General Public License version 2 or later; see LICENSE.txt
   9   */
  10  
  11  defined('_JEXEC') or die;
  12  
  13  use Joomla\CMS\Factory;
  14  
  15  /** @var \Joomla\CMS\WebAsset\WebAssetManager $wa */
  16  $wa = Factory::getApplication()->getDocument()->getWebAssetManager();
  17  $wa->addInlineScript('
  18      document.addEventListener("DOMContentLoaded", function() {
  19          const saveCloseButton = window.parent.document.getElementById("btnModalSaveAndClose");
  20          if (saveCloseButton) {
  21            saveCloseButton.classList.remove("hidden");
  22          }
  23      });
  24  ');
  25  
  26  ?>
  27  <button id="applyBtn" type="button" class="hidden" onclick="Joomla.submitbutton('module.apply');"></button>
  28  <button id="saveBtn" type="button" class="hidden" onclick="Joomla.submitbutton('module.save');"></button>
  29  <button id="closeBtn" type="button" class="hidden" onclick="Joomla.submitbutton('module.cancel');"></button>
  30  
  31  <div class="container-popup">
  32      <?php $this->setLayout('edit'); ?>
  33      <?php echo $this->loadTemplate(); ?>
  34  </div>


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