sliderAccess tweak

This commit is contained in:
Trent Richardson 2011-12-04 09:45:23 -05:00
parent cc45f6a6d8
commit ac38588138

View file

@ -639,6 +639,7 @@ $.extend(Timepicker.prototype, {
if (this._defaults.addSliderAccess){ if (this._defaults.addSliderAccess){
var sliderAccessArgs = this._defaults.sliderAccessArgs; var sliderAccessArgs = this._defaults.sliderAccessArgs;
setTimeout(function(){ // fix for inline mode setTimeout(function(){ // fix for inline mode
if($tp.find('.ui-slider-access').length == 0){
$tp.find('.ui-slider:visible').sliderAccess(sliderAccessArgs); $tp.find('.ui-slider:visible').sliderAccess(sliderAccessArgs);
// fix any grids since sliders are shorter // fix any grids since sliders are shorter
@ -654,6 +655,7 @@ $.extend(Timepicker.prototype, {
$g.css({ width: newWidth, marginLeft: newMarginLeft }); $g.css({ width: newWidth, marginLeft: newMarginLeft });
}); });
} }
}
},0); },0);
} }
// end slideAccess integration // end slideAccess integration