?
Path : /home/admin/public_html/old/administrator/components/com_modules/views/module/tmpl/ |
Current File : /home/admin/public_html/old/administrator/components/com_modules/views/module/tmpl/modal.php |
<?php /** * @package Joomla.Administrator * @subpackage com_modules * * @copyright Copyright (C) 2005 - 2015 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; // This code is needed for proper check out in case of modal close JFactory::getDocument()->addScriptDeclaration(' window.parent.jQuery(".modal").on("hidden", function () { if (typeof window.parent.jQuery("#module' . $this->item->id . 'Modal iframe").contents().find("#closeBtn") !== "undefined") { window.parent.jQuery("#module' . $this->item->id . 'Modal iframe").contents().find("#closeBtn").click(); } }); '); ?> <button id="saveBtn" type="button" class="hidden" onclick="Joomla.submitbutton('module.save');"></button> <button id="closeBtn" type="button" class="hidden" onclick="Joomla.submitbutton('module.cancel');"></button> <?php $this->setLayout('edit'); echo $this->loadTemplate();