CoreFiles by mySites.guru
default.js27 lines, 1,036 bytes, from Joomla_2.5.21-Stable-Full_Package.zip
Raw History Compare with 2.5.20
md5
2c77a08886f2340342829c76592385d2
sha1
edacff5fcc54cf4141d9b7b17e30205153c5a237
sha256
7fa0c12ed3b3552337da5c4e5eac14d3c73621daeaeae986bfccb14b1d5cb26e
window.addEvent('domready', function () {
	em = document.id('extraction_method');
	if (em) {
		em.addEvent('change', function () {
			if(em.value == 'direct') {
				document.id('row_ftp_hostname').style.display = 'none';
				document.id('row_ftp_port').style.display = 'none';
				document.id('row_ftp_username').style.display = 'none';
				document.id('row_ftp_password').style.display = 'none';
				document.id('row_ftp_directory').style.display = 'none';
			} else {
				document.id('row_ftp_hostname').style.display = 'table-row';
				document.id('row_ftp_port').style.display = 'table-row';
				document.id('row_ftp_username').style.display = 'table-row';
				document.id('row_ftp_password').style.display = 'table-row';
				document.id('row_ftp_directory').style.display = 'table-row';
			}
		});
	}

	$$('button.submit').addEvent('click', function() {
		$$('div.download_message').setStyle('display', 'block');
		var el = $$('div.joomlaupdate_spinner');
		el.set('spinner', {class: 'joomlaupdate_spinner'});
		el.spin();
	})
});

The same content is in 26 releases, Joomla 2.5.5 to 3.0.2. See them all, or every version of this file.