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,{
name => 'badgeId',
options => \%options,
disabled => $addBadgeId ? 1 : 0,
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;