Difference between revisions of "MediaWiki:Newarticleassistant-formscript"

m
no edit summary
m
m
/* <pre> */
mw$(document).loader.usingready(['jquery', 'jquery.ui'], function() {
$(document'#bnSourcetype').readychange(function() {
$sourceType = $(this).val();
$('#bnSourcetype').change(function() {
if ($sourceType == 'exclusive' || $(thissourceType == 'none').val(); {
$('#bnSourcelinkbnSourcename').attr('disabled', true).closest('tr').fadeTo('fast', 0.5);
if ($sourceType == 'exclusive' || $sourceType == 'none') {
$('#bnSourcenamebnSourcelink').attr('disabled', true).closest('tr').fadeTo('fast', 0.5);
} else {
$('#bnSourcelink').attr('disabled', true).closest('tr').fadeTo('fast', 0.5);
$('#bnSourcelinkbnSourcename').removeAttr('disabled').closest('tr').fadeTo('fast', 1.0);
} else {
$('#bnSourcenamebnSourcelink').removeAttr('disabled').closest('tr').fadeTo('fast', 1.0);
}
$('#bnSourcelink').removeAttr('disabled').closest('tr').fadeTo('fast', 1.0);
});
}
 
});
$('#bnSourcelinkbnSourcename').attr('disabled', true).closest('tr').fadeTo(0, 0.5);
$('#bnSourcenamebnSourcelink').attr('disabled', true).closest('tr').fadeTo(0, 0.5);
$('#bnSourcelink').attr('disabled', true).closest('tr').fadeTo(0, 0.5);
});
});
/* </pre> */