Opened 11 years ago

Closed 11 years ago

#7655 closed bug (notabug)

Slide does not move

Reported by: evgeniy Owned by:
Priority: minor Milestone: 1.9.0
Component: ui.slider Version: 1.8.16
Keywords: Cc:
Blocked by: Blocking:

if change start value to "0" works fine, but in other values it does not move. i tried to debug it and found in 359 line jquery.ui.slider.js:
valueMouse = this._valueMin() + percentMouse * valueTotal;
in chromium 12.0.742.112 (ubuntu) and firefox 6 (ubuntu)
typeof( percentMouse * valueTotal ): "number"
typeof( this._valueMin() ): "string"
and "+" concatenate values
i used jquery.ui.1.8.16 and jquery.1.6.2

Change History (2)

comment:1 Changed 11 years ago by baton

setting (from your sample code):

min: parseInt($('.totalarea input.from').val())

solves the problem whatsoever.. i'm not sure if entry params type safety is required or not for the initial parameters (so is it a requirement to pass in only 'numbers' as min/max init params?) - but anyway understanding it will overcome the problem for sure

comment:2 Changed 11 years ago by Scott González

Resolution: invalid
Status: newclosed

Yes, numbers are required.

Note: See TracTickets for help on using tickets.