Difference between revisions of "MediaWiki:Newarticleassistant-formscript"

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