Fixes: U4-4945 Slider type stops working on ajax load in 7.1.3
This commit is contained in:
@@ -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 () {
|
||||
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user