Open main menu

Bulbanews β

Changes

MediaWiki:Newarticleassistant-formscript

73 bytes added, 10:55, 7 September 2011
m
no edit summary
/* <pre> */
$(document)mw.readyloader.using(['jquery', 'jquery.ui'], function() {
$('#bnSourcetype'document).changeready(function() {
$sourceType = $(this'#bnSourcetype').valchange(function(); {
if ( $sourceType == 'exclusive' || $sourceType == 'none'(this) {.val();
if ($(sourceType == '#bnSourcenameexclusive').attr('disabled', true).closest(|| $sourceType == 'trnone').fadeTo('fast', 0.5);{
$('#bnSourcelinkbnSourcename').attr('disabled', true).closest('tr').fadeTo('fast', 0.5);
} $('#bnSourcelink').attr('disabled', elsetrue).closest('tr').fadeTo('fast', {0.5);
$('#bnSourcename').removeAttr('disabled').closest('tr').fadeTo('fast',} 1.0);else {
$('#bnSourcelinkbnSourcename').removeAttr('disabled').closest('tr').fadeTo('fast', 1.0);
} $('#bnSourcelink').removeAttr('disabled').closest('tr').fadeTo('fast', 1.0);
}
});
$('#bnSourcename').attr('disabled', true).closest('tr').fadeTo(0, 0.5);
$('#bnSourcelink').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> */