From 2a0d2bdb86b265bd3c4177cefb0807da9b858dd9 Mon Sep 17 00:00:00 2001 From: Shannon Date: Wed, 28 May 2014 13:25:47 +1000 Subject: [PATCH] Fixes: U4-4945 Slider type stops working on ajax load in 7.1.3 --- .../src/views/propertyeditors/slider/slider.controller.js | 6 ++++++ .../src/views/propertyeditors/slider/slider.html | 8 +------- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/slider/slider.controller.js b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/slider/slider.controller.js index 48a7dbd611..692d2dbc99 100644 --- a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/slider/slider.controller.js +++ b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/slider/slider.controller.js @@ -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 () { diff --git a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/slider/slider.html b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/slider/slider.html index ce05e865fb..66fc61153a 100644 --- a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/slider/slider.html +++ b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/slider/slider.html @@ -1,11 +1,5 @@ 
- +
\ No newline at end of file