CoreFiles by mySites.guru
modal.php26 lines, 978 bytes, from Joomla_3.4.4-Stable-Full_Package.zip
Raw History Compare with 3.4.3
md5
32465a4cda44e1ac3c1daf2cfa17d99a
sha1
4750d6818d9eef670e0ccd5a4f82ef1eeca4addd
sha256
9b8b5dcf8860c22f8eb67f95869ef4c247a5c38323e5da1f02bdad5b078c9a14
<?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();

The same content is in 12 releases, Joomla 3.4.2-rc to 3.5.0-beta. See them all, or every version of this file.