1,581
edits
m (Created page with "→<code>: $(document).ready(function() { $('#bnSourcetype').change(function() { $sourceType = $(this).val(); if ($sourceType == 'exclusive' || $sourceType == 'none') { ...") |
mNo edit summary |
||
Line 1: | Line 1: | ||
/* < | /* <pre> */ | ||
$(document).ready(function() { | $(document).ready(function() { | ||
$('#bnSourcetype').change(function() { | $('#bnSourcetype').change(function() { | ||
$sourceType = $(this).val(); | $sourceType = $(this).val(); | ||
if ($sourceType == 'exclusive' || $sourceType == 'none') { | if ($sourceType == 'exclusive' || $sourceType == 'none') { | ||
$('#bnSourcename'). | $('#bnSourcename').attr('disabled', true).fadeTo('fast', 0.5); | ||
$('#bnSourcelink'). | $('#bnSourcelink').attr('disabled', true).fadeTo('fast', 0.5); | ||
} else { | } else { | ||
$('#bnSourcename'). | $('#bnSourcename').removeAttr('disabled').fadeTo('fast', 1.0); | ||
$('#bnSourcelink'). | $('#bnSourcelink').removeAttr('disabled').fadeTo('fast', 1.0); | ||
} | } | ||
}); | }); | ||
}); | }); | ||
/* </ | /* </pre> */ |