Skip to main content

Search and Top Navigation

#7655 closed bug (notabug)

Opened August 19, 2011 09:55AM UTC

Closed August 19, 2011 12:38PM UTC

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

Attachments (0)
Change History (2)

Changed August 19, 2011 10:18AM UTC by baton comment:1

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

Changed August 19, 2011 12:38PM UTC by scottgonzalez comment:2

resolution: → invalid
status: newclosed

Yes, numbers are required.