CoreFiles by mySites.guru
xstandard.js50 lines, 1,317 bytes, from Joomla_1.5.2-Stable-Full_Package.zip
Raw History Compare with 1.5.1
md5
e8cea04bf00b3c0889cdbdcd37267371
sha1
3403bbada2b6d078f02313b12276fce0b5c0de7c
sha256
2a8a5ecfdcb628065ad11c731e0bf31f0a1af1d8993e1ded53418e6894143831
/**
 * @version		$Id: xstandard.js 9765 2007-12-30 08:21:02Z ircmaxell $
 * @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
 *
 * @author		Johan Janssens <[email protected]>
 * @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 4 releases, Joomla 1.5.0 to 1.5.3. See them all, or every version of this file.