Commit 07ec8169 authored by kvindasAB's avatar kvindasAB

Adding listeners/logic to re-render the slider on min/max change.

parent 19917076
......@@ -256,6 +256,25 @@ function throttle(func, wait, options) {
if(newValue === oldValue) return;
thrHigh();
});
this.scope.$watch('rzSliderFloor', function(newValue, oldValue){
if(newValue === oldValue) return;
self.resetSlider();
});
this.scope.$watch('rzSliderCeil', function(newValue, oldValue){
if(newValue === oldValue) return;
self.resetSlider();
});
},
resetSlider: function() {
this.setMinAndMax();
this.calcViewDimensions();
this.updateCeilLab();
this.updateFloorLab();
},
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment