summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2014-04-03 10:49:46 +0000
committerGerrit Code Review <review@openstack.org>2014-04-03 10:49:46 +0000
commitbebb039eabae6cb8a4fe9186d1663c0fecccfacf (patch)
tree1eba72b6643623f910b614b9d80fc9d69500daf6
parentafa1203e126cfd9e7548d947ca67abce8f11de6d (diff)
parent7dadd3499782e4744586c4d17a4b15f76e0bda58 (diff)
downloadtuskar-ui-bebb039eabae6cb8a4fe9186d1663c0fecccfacf.tar.gz
Merge "Change templateUrl to absolute path"
-rw-r--r--tuskar_ui/infrastructure/static/infrastructure/js/angular/horizon.number_picker.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/tuskar_ui/infrastructure/static/infrastructure/js/angular/horizon.number_picker.js b/tuskar_ui/infrastructure/static/infrastructure/js/angular/horizon.number_picker.js
index 0af46a94..a94f1486 100644
--- a/tuskar_ui/infrastructure/static/infrastructure/js/angular/horizon.number_picker.js
+++ b/tuskar_ui/infrastructure/static/infrastructure/js/angular/horizon.number_picker.js
@@ -1,9 +1,9 @@
-angular.module('hz').directive('hrNumberPicker', function() {
+angular.module('hz').directive('hrNumberPicker', ['hzConfig', function(hzConfig) {
return {
restrict: 'A',
replace: true,
scope: { initial_value: '=value' },
- templateUrl: '../../static/infrastructure/angular_templates/numberpicker.html',
+ templateUrl: hzConfig.static_url + 'infrastructure/angular_templates/numberpicker.html',
link: function(scope, element, attrs) {
input = element.find('input').first();
angular.forEach(element[0].attributes, function(attribute) {
@@ -33,4 +33,4 @@ angular.module('hz').directive('hrNumberPicker', function() {
};
}
};
-});
+}]);