5,426
edits
mNo edit summary |
(Hope this works) |
||
Line 5: | Line 5: | ||
if ($sourceType == 'exclusive' || $sourceType == 'none') { | if ($sourceType == 'exclusive' || $sourceType == 'none') { | ||
$('#bnSourcename').attr('disabled', true).closest('tr').fadeTo('fast', 0.5); | $('#bnSourcename').attr('disabled', true).closest('tr').fadeTo('fast', 0.5); | ||
} else { | |||
$('#bnSourcename').removeAttr('disabled').closest('tr').fadeTo('fast', 1.0); | |||
} | |||
if ($sourceType == 'exclusive' || $sourceType == 'other' || $sourceType == 'none') { | |||
$('#bnSourcelink').attr('disabled', true).closest('tr').fadeTo('fast', 0.5); | $('#bnSourcelink').attr('disabled', true).closest('tr').fadeTo('fast', 0.5); | ||
} else { | } else { | ||
$('#bnSourcelink').removeAttr('disabled').closest('tr').fadeTo('fast', 1.0); | $('#bnSourcelink').removeAttr('disabled').closest('tr').fadeTo('fast', 1.0); | ||
} | } |