CoreFiles by mySites.guru
view.html.php31 lines, 780 bytes, from Joomla_2.5.28-Stable-Full_Package.zip
Raw History Compare with 2.5.27
md5
7399d84c852a9440c42f61f756cb587e
sha1
b0f45e5198809df53f9b419bb907a43d6e089a4e
sha256
849cc04fd1545daad875522c0e8c8af87c167116b1457f36326f265906b0cb4c
<?php
/**
 * @package		Joomla.Administrator
 * @subpackage	com_config
 * @copyright	Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved.
 * @license		GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('_JEXEC') or die;

/**
 * This view is displayed after successfull saving of config data.
 * Use it to show a message informing about success or simply close a modal window.
 *
 * @package		Joomla.Administrator
 * @subpackage	com_config
 */
class ConfigViewClose extends JViewLegacy
{
	/**
	 * Display the view
	 */
	function display($tpl = null)
	{
		// close a modal window
		JFactory::getDocument()->addScriptDeclaration('
			window.parent.location.href=window.parent.location.href;
			window.parent.SqueezeBox.close();
		');
	}
}

The same content is in 11 releases, Joomla 2.5.18 to 2.5.28. See them all, or every version of this file.