Open main menu

Bulbanews β

Changes

MediaWiki:Newarticleassistant-formscript

95 bytes added, 11:03, 12 June 2014
m
no edit summary
/* <pre> */
mw$(document).loader.usingready(['jquery', 'jquery.ui'], function() {
$(document'#bnSourcetype').readychange(function() {
$sourceType = $('#bnSourcetype'this).change(functionval() {;
if ($sourceType == 'exclusive' || $(thissourceType == 'none').val(); {
if ($sourceType == 'exclusive' || $sourceType == $('none#bnSourcename').attr('disabled', {true).closest('tr').fadeTo('fast', 0.5);
$('#bnSourcenamebnSourcelink').attr('disabled', true).closest('tr').fadeTo('fast', 0.5);
$('#bnSourcelink').attr('disabled', true).closest('tr').fadeTo('fast', 0.5); } else {
} else { $('#bnSourcename').removeAttr('disabled').closest('tr').fadeTo('fast', 1.0);
$('#bnSourcenamebnSourcelink').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);
$('#bnSourcenamebnSourcelink').attr('disabled', true).closest('tr').fadeTo(0, 0.5);
$('#bnSourcelink').attr('disabled', true).closest('tr').fadeTo(0, 0.5);
});
});
/* </pre> */