CoreFiles by mySites.guru
tiny-close.js39 lines, 1,051 bytes, from Joomla_3.6.0-Stable-Full_Package.zip
Raw History Compare with 3.5.1
md5
7c8b3d756e171e581fb16a6a405778a8
sha1
2c308b3ca2b2e339f23bb6ef1710a591b59e70aa
sha256
7494d3ae5b0da024fcb54844b5fa7bc57b88a370d71774d27ce36c7f95015c65
/**
 * @copyright   Copyright (C) 2005 - 2016 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

/**
 * This is used by tinyMCE in order to allow both mootools and bootstrap modals
 * to close correctly
 *
 * @package     Joomla
 * @since       3.6
 * @version     1.0
 */
jQuery(window).bind("load", function () {
	if (jModalClose === undefined && typeof(jModalClose) != 'function') {
		var jModalClose;
		jModalClose = function () {
			tinyMCE.activeEditor.windowManager.close();
		}
	} else {
		var oldClose = jModalClose;
		jModalClose = function () {
			oldClose.apply(this, arguments);
			tinyMCE.activeEditor.windowManager.close();
		};
	}
	if (SqueezeBox != undefined) {
		var oldSqueezeBox = SqueezeBox.close;
		SqueezeBox.close = function () {
			oldSqueezeBox.apply(this, arguments);
			tinyMCE.activeEditor.windowManager.close();
		}
	} else {
		var SqueezeBox = {};
		SqueezeBox.close = function () {
			tinyMCE.activeEditor.windowManager.close();
		}
	}
});

No other release has this exact content. See every version of this file.