Open main menu

Bulbanews β

MediaWiki:Newarticleassistant-formscript

Revision as of 02:11, 19 August 2011 by Zhen Lin (talk | contribs)
/*
 */
$(document).ready(function() {
	$('#bnSourcetype').change(function() {
		$sourceType = $(this).val();
		if ($sourceType == 'exclusive' || $sourceType == 'none') {
			$('#bnSourcename').attr('disabled', true).fadeTo('fast', 0.5);
			$('#bnSourcelink').attr('disabled', true).fadeTo('fast', 0.5);
		} else {
			$('#bnSourcename').removeAttr('disabled').fadeTo('fast', 1.0);
			$('#bnSourcelink').removeAttr('disabled').fadeTo('fast', 1.0);
		}
	});
});
/* 
*/