Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Previous commit had broken the slider.
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed Oct 20, 2013
1 parent 4324400 commit 67dae41
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion core/src/plugins/gui.ajax/res/js/ajaxplorer.js

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions core/src/plugins/gui.ajax/res/js/lib/scriptaculous/src/slider.js
Expand Up @@ -138,12 +138,12 @@ Control.Slider = Class.create({
sliderValue = this.getNearestValue(sliderValue);
this.values[handleIdx] = sliderValue;
this.value = this.values[0]; // assure backwards compat
//this.handles[handleIdx].style[this.isVertical() ? 'top' : 'left'] = this.translateToPx(sliderValue);
if(handleIdx && this.handles[handleIdx]){
var style = {};
style[this.isVertical() ? 'top' : 'left'] = this.translateToPx(sliderValue);
this.handles[handleIdx].setStyle(style);

try{
this.handles[handleIdx].style[this.isVertical() ? 'top' : 'left'] =
this.translateToPx(sliderValue);
}catch (e){

}

this.drawSpans();
Expand Down

0 comments on commit 67dae41

Please sign in to comment.