Merge pull request #1401 from ether/slider-position

Fix #1360 -- slider pin position
pull/1402/merge
Marcel Klehr 2013-01-24 09:00:46 -08:00
commit 0c3d90b753
1 changed files with 5 additions and 1 deletions

View File

@ -361,7 +361,11 @@ function loadBroadcastSliderJS(fireWhenAllScriptsAreLoaded)
$(self).css('left', newloc);
// if(getSliderPosition() != Math.floor(newloc * sliderLength / ($("#ui-slider-bar").width()-2)))
setSliderPosition(Math.floor(newloc * sliderLength / ($("#ui-slider-bar").width() - 2)))
self.currentLoc = parseInt($(self).css('left'));
if(parseInt($(self).css('left')) < 2){
$(self).css('left', '2px');
}else{
self.currentLoc = parseInt($(self).css('left'));
}
});
})