angular-ui-slider
Advanced tools
Comparing version 0.3.1 to 0.3.2
{ | ||
"name": "angular-ui-slider", | ||
"version": "0.3.1", | ||
"version": "0.3.2", | ||
"description": "This directive allows you to add a slider to your form elements.", | ||
@@ -5,0 +5,0 @@ "author": "https://github.com/angular-ui/ui-slider/graphs/contributors", |
@@ -179,2 +179,3 @@ /* | ||
} | ||
$(elm).find('.ui-slider-tip').text(ngModel.$viewValue); | ||
}, true); | ||
@@ -210,3 +211,11 @@ | ||
if(angular.isDefined(options['tip'])) { | ||
$timeout(function(){element.find('.ui-slider-handle').append('<div class="ui-slider-tip">'+ngModel.$viewValue+'</div>')},10); | ||
$timeout(function(){ | ||
var handles = element.find('.ui-slider-handle'); | ||
if(handles && handles.length>1 && ngModel.$viewValue && angular.isArray(ngModel.$viewValue)){ | ||
$(handles[0]).append('<div class="ui-slider-tip">'+ngModel.$viewValue[0]+'</div>'); | ||
$(handles[1]).append('<div class="ui-slider-tip">'+ngModel.$viewValue[1]+'</div>'); | ||
}else{ | ||
element.find('.ui-slider-handle').append('<div class="ui-slider-tip">'+ngModel.$viewValue+'</div>'); | ||
} | ||
},10); | ||
} | ||
@@ -213,0 +222,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
31166
247