MediaWiki:Newarticleassistant-formscript

From Bulbanews, your community Pokémon newspaper.
Revision as of 02:17, 19 August 2011 by Zhen Lin (talk | contribs)
Jump to navigationJump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

/*

 */
$(document).ready(function() {
	$('#bnSourcetype').change(function() {
		$sourceType = $(this).val();
		if ($sourceType == 'exclusive' || $sourceType == 'none') {
			$('#bnSourcename').attr('disabled', true).closest('tr').fadeTo('fast', 0.5);
			$('#bnSourcelink').attr('disabled', true).closest('tr').fadeTo('fast', 0.5);
		} else {
			$('#bnSourcename').removeAttr('disabled').closest('tr').fadeTo('fast', 1.0);
			$('#bnSourcelink').removeAttr('disabled').closest('tr').fadeTo('fast', 1.0);
		}
	});

	$('#bnSourcename').attr('disabled', true).closest('tr').fadeTo(0, 0.5);
	$('#bnSourcelink').attr('disabled', true).closest('tr').fadeTo(0, 0.5);
});
/* 

*/