fixing disabled thingie

This commit is contained in:
Matthew Wilson 2006-04-17 09:33:41 +00:00
parent 02598b6242
commit 2ebe2f82a6

View file

@ -771,9 +771,8 @@ sub getBadgeSelector {
$output .= WebGUI::Form::selectBox($self->session,{ $output .= WebGUI::Form::selectBox($self->session,{
name => 'badgeId', name => 'badgeId',
options => \%options, options => \%options,
disabled => $addBadgeId ? 1 : 0,
value => $addBadgeId, value => $addBadgeId,
extras => 'onchange="swapBadgeInfo(this.value)" onkeyup="swapBadgeInfo(this.value)"' extras => 'onchange="swapBadgeInfo(this.value)" onkeyup="swapBadgeInfo(this.value)"'.($addBadgeId ? ' disabled="disabled"' : '')
}); });
return $js.$output; return $js.$output;