Skip to content

Commit

Permalink
Fix Slider2 Disabled status ( #592 ).
Browse files Browse the repository at this point in the history
  • Loading branch information
TheCoder4eu committed Apr 9, 2017
1 parent 494545d commit ab30a8e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ private void encodeSliderInput(Slider2 slider, ResponseWriter rw, boolean vo, in
if(BsfUtils.isValued(slider.isTooltipSplit())) rw.writeAttribute("data-slider-tooltip-split", slider.isTooltipSplit(), null);
if(BsfUtils.isValued(slider.getTooltipSliderPosition())) rw.writeAttribute("data-slider-tooltip-position", slider.getTooltipSliderPosition(), null);
if(BsfUtils.isValued(slider.getOrientation())) rw.writeAttribute("data-slider-orientation", slider.getOrientation().startsWith("vertical") ? "vertical" : "horizontal", null);
if(BsfUtils.isValued(slider.isDisabled())) rw.writeAttribute("data-slider-enabled", !slider.isDisabled(), null);
if(slider.isDisabled()) rw.writeAttribute("data-slider-enabled", "false", null);
if(BsfUtils.isValued(slider.getPrecision())) rw.writeAttribute("data-slider-precision", slider.getPrecision(), null);
if(BsfUtils.isValued(slider.getScale())) rw.writeAttribute("data-slider-ticks-scale", slider.getScale(), null);
if(BsfUtils.isValued(slider.isFocus())) rw.writeAttribute("data-slider-focus", slider.isFocus(), null);
Expand Down

0 comments on commit ab30a8e

Please sign in to comment.