CoreFiles by mySites.guru
xstandard.js49 lines, 1,206 bytes, from Joomla_1.5.21-Stable-Full_Package.zip
Raw History Compare with 1.5.20
md5
76721eab2c74da61bb16fb82c5a8aed4
sha1
9e48b979b20bfa3b01084d13cfc9d342ac9f9afa
sha256
3cca1020a2e62d2a542869c86a06c8c99a7f3ff5b836c9ba47c33aa8bb1375dd
/**
 * @version		$Id: xstandard.js 14401 2010-01-26 14:10:00Z louis $
 * @package		Joomla
 * @copyright	Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved.
 * @license		GNU/GPL, see LICENSE.php
 * Joomla! is free software. This version may have been modified pursuant
 * to the GNU General Public License, and as distributed it includes or
 * is derivative of works licensed under the GNU General Public License or
 * other free or open source software licenses.
 * See COPYRIGHT.php for copyright notices and details.
 */

/**
 * JXStandard javascript behavior
 *
 * @package		Joomla
 * @since		1.5
 * @version     1.0
 */
var JXStandard = new Class({

	instances : null,

	initialize: function()
	{
	 	this.instances = $ES('object[type=application/x-xstandard]');

	 	var self = this;
	 	document.adminForm.onsubmit = function() {
	 		self.save();
		 }
	},

	save: function()
	{
		this.instances.each(function(instance)
		{
			instance.EscapeUnicode = false;
			var contents = instance.value;
			$(instance.className).value = contents;
		});
	}
})

document.xstandard = null
window.addEvent('domready', function(){
  var xstandard = new JXStandard();
  document.xstandard = xstandard;
});

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