Fixes: U4-4945 Slider type stops working on ajax load in 7.1.3

This commit is contained in:
Shannon
2014-05-28 13:25:47 +10:00
parent 24d3e465ea
commit 2a0d2bdb86
2 changed files with 7 additions and 7 deletions

View File

@@ -71,6 +71,12 @@
//initiate slider, add event handler and get the instance reference (stored in data)
var slider = $element.find('.slider-item').slider({
max: $scope.model.config.maxVal,
min: $scope.model.config.minVal,
orientation: $scope.model.config.orientation,
selection: "after",
step: $scope.model.config.step,
tooltip: "show",
//set the slider val - we cannot do this with data- attributes when using ranges
value: sliderVal
}).on('slideStop', function () {

View File

@@ -1,11 +1,5 @@
<div ng-controller="Umbraco.PropertyEditors.SliderController">
<input type="text" name="slider" class="slider-item"
data-slider-min="{{ model.config.minVal }}"
data-slider-max="{{ model.config.maxVal }}"
data-slider-step="{{ model.config.step }}"
data-slider-orientation="{{ model.config.orientation }}"
data-slider-selection="after"
data-slider-tooltip="show" />
<input type="text" name="slider" class="slider-item" />
</div>