Open main menu

Bulbanews β

Changes

MediaWiki:Newarticleassistant-formscript

144 bytes added, 14:56, 31 October 2014
Hope this works
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);
}
if ($sourceType == 'exclusive' || $sourceType == 'other' || $sourceType == 'none') {
$('#bnSourcelink').attr('disabled', true).closest('tr').fadeTo('fast', 0.5);
} else {
$('#bnSourcelink').removeAttr('disabled').closest('tr').fadeTo('fast', 1.0);
}