Difference between revisions of "MediaWiki:Newarticleassistant-formscript"

m
no edit summary
m (Created page with "→‎<code>: $(document).ready(function() { $('#bnSourcetype').change(function() { $sourceType = $(this).val(); if ($sourceType == 'exclusive' || $sourceType == 'none') { ...")
 
m
/* <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> */