Open main menu

Bulbanews β

Changes

MediaWiki:Newarticleassistant-formscript

58 bytes added, 02:11, 19 August 2011
m
no edit summary
/* <codepre> */
$(document).ready(function() {
$('#bnSourcetype').change(function() {
$sourceType = $(this).val();
if ($sourceType == 'exclusive' || $sourceType == 'none') {
$('#bnSourcename').closestattr('trdisabled', true).hidefadeTo('blindfast', 0.5);
$('#bnSourcelink').closestattr('trdisabled', true).hidefadeTo('blindfast', 0.5);
} else {
$('#bnSourcename').closestremoveAttr('trdisabled').showfadeTo('blindfast', 1.0);
$('#bnSourcelink').closestremoveAttr('trdisabled').showfadeTo('blindfast', 1.0);
}
});
});
/* </codepre> */