From 3cabec84d45a6815157cf5e5b3297f293af6ca67 Mon Sep 17 00:00:00 2001 From: perploug Date: Mon, 17 Mar 2014 20:01:39 +0100 Subject: [PATCH] Fixes broken IE11 slider in ImageCropper --- .../directives/imaging/umbimagecrop.directive.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/Umbraco.Web.UI.Client/src/common/directives/imaging/umbimagecrop.directive.js b/src/Umbraco.Web.UI.Client/src/common/directives/imaging/umbimagecrop.directive.js index 14424b7d89..a3e13be4bd 100644 --- a/src/Umbraco.Web.UI.Client/src/common/directives/imaging/umbimagecrop.directive.js +++ b/src/Umbraco.Web.UI.Client/src/common/directives/imaging/umbimagecrop.directive.js @@ -238,7 +238,16 @@ angular.module("umbraco.directives") } }); - + //ie hack + if(window.navigator.userAgent.indexOf("MSIE ")){ + var ranger = element.find("input"); + ranger.bind("change",function(){ + scope.$apply(function(){ + scope.dimensions.scale.current = ranger.val(); + }); + }); + } + //// INIT ///// $image.load(function(){ $timeout(function(){