$scope.percentages=JSON.parse(JSON.stringify(values));//Copy of the object in order to keep original values in $scope.percentages in parent controller.
$scope.percentages=JSON.parse(JSON.stringify(values));//Copy of the object in order to keep original values in $scope.percentages in parent controller.
$scope.formatToPercentage=function(value){
$scope.formatToPercentage=function(value){
returnvalue+'%';
returnvalue+'%';
};
};
$scope.ok=function(){
$scope.ok=function(){
$modalInstance.close($scope.percentages);
$modalInstance.close($scope.percentages);
};
};
$scope.cancel=function(){
$scope.cancel=function(){
$modalInstance.dismiss();
$modalInstance.dismiss();
};
};
},
},
...
@@ -176,11 +186,11 @@
...
@@ -176,11 +186,11 @@
}
}
});
});
modalInstance.result.then(function(percentages){
modalInstance.result.then(function(percentages){
$scope.percentages=percentages;
$scope.percentages=percentages;
});
});
modalInstance.rendered.then(function(){
modalInstance.rendered.then(function(){
$rootScope.$broadcast('rzSliderForceRender');//Force refresh sliders on render. Otherwise bullets are aligned at left side.
$rootScope.$broadcast('rzSliderForceRender');//Force refresh sliders on render. Otherwise bullets are aligned at left side.