Permalink
Browse files

Merge pull request #1238 from ditorelo/483

Fixing timeline js timing out (#483)
  • Loading branch information...
2 parents ac5f317 + 76c3bb6 commit 093a3ed5bcdaef1cf8310fd9bcc6bd1cae01fa8e @rjmackay rjmackay committed Nov 4, 2013
Showing with 6 additions and 5 deletions.
  1. +6 −5 media/js/selectToUISlider.jQuery.js
View
11 media/js/selectToUISlider.jQuery.js
@@ -210,11 +210,12 @@ jQuery.fn.selectToUISlider = function(settings){
sliderComponent
.insertAfter(jQuery(this).eq(this.length-1))
.slider(options.sliderOptions)
- .attr('role','application')
- .find('.ui-slider-label')
- .each(function(){
- jQuery(this).css('marginLeft', -jQuery(this).width()/2);
- });
+ .attr('role','application');
+
+ var labels = jQuery('.ui-slider-label', sliderComponent);
+ var width = labels.width() / 2;
+ labels.css("marginLeft", width);
+
//update tooltip arrow inner color
sliderComponent.find('.ui-tooltip-pointer-down-inner').each(function(){

0 comments on commit 093a3ed

Please sign in to comment.