fixed: SelectSlider form control is broken

This commit is contained in:
Graham Knop 2008-10-05 20:57:02 +00:00
parent 15941aaea2
commit e7e0511552
5 changed files with 17 additions and 19 deletions

View file

@ -91,7 +91,7 @@ Returns the value that should be displayed initially.
sub getDisplayValue {
my $self = shift;
return $self->getValue();
return $self->getOriginalValue();
}
#-------------------------------------------------------------------
@ -237,7 +237,7 @@ Returns the initial position of the slider in slider units.
sub getSliderValue {
my $self = shift;
return $self->getValue();
return $self->getOriginalValue();
}
#-------------------------------------------------------------------
@ -283,7 +283,7 @@ sub toHtml {
$output .= '<td><div class="slider" id="'.$self->get('id').'" '.$self->get("extras").' tabindex="1">';
$output .= WebGUI::Form::hidden($self->session, {
-name => 'slider-'.$self->get('name'),
-value => $self->getValue(),
-value => $self->getOriginalValue(),
-id => $self->get('id').'-input',
-extras => 'class="slider-input"',
});