Bug in Slider

On your dhtmlxSlider if you use min: -10 and max: 10 and set the value to 0. It will start the slider at 0 but the linkto input will be initial value of -10.

This is because you define it as:

this.value = h || e || 0;

where h is value, e is the min. If h is set to 0 it will fail that check and move on to e (the min).

We have reproduced the problem. It will be fixed in the next version.

Try to replace this.value = h || e || 0; with the following:

this.value = (typeof h != “undefined”? h: (e || 0));