CoreFiles by mySites.guru
xstandard.js49 lines, 1,210 bytes, from Joomla_1.5.13-Stable-Full_Package.zip
Raw History Compare with 1.5.12
md5
824384e66c01f2bf2c435cd4471bd36a
sha1
a8d88dd38e67da8232d395481623644092f768c3
sha256
2d952eb4e1d4d3457ee666e7afaa396557efb1b713ae317eb82d0d28dd942ee4
/**
 * @version		$Id: xstandard.js 10714 2008-08-21 10:10:14Z eddieajau $
 * @package		Joomla
 * @copyright	Copyright (C) 2005 - 2008 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 9 releases, Joomla 1.5.7 to 1.5.15. See them all, or every version of this file.