From e97eea170d3d0676b7dbba6d907016fbc5386321 Mon Sep 17 00:00:00 2001 From: Omer Etrog Date: Mon, 21 Dec 2015 12:34:10 +0200 Subject: [PATCH] add globals add STATIC_URL Change-Id: I9809aae8f4a89286b417dab2dd7da78d7d2ce8eb --- .jshintrc | 3 ++- .../project/components/sunburst/sunburst.directive.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.jshintrc b/.jshintrc index fb1a1a6..5c97076 100644 --- a/.jshintrc +++ b/.jshintrc @@ -1,7 +1,7 @@ { "browser": true, "esnext": true, - "predef": ["angular", "horizon", "$"], + "predef": ["angular", "horizon", "$","STATIC_URL","d3"], "globalstrict": true, "quotmark": true, "smarttabs": true, @@ -26,4 +26,5 @@ "nonew": true, "supernew": true, "validthis": true + } \ No newline at end of file diff --git a/vitragedashboard/static/dashboard/project/components/sunburst/sunburst.directive.js b/vitragedashboard/static/dashboard/project/components/sunburst/sunburst.directive.js index 6ed73c3..f215176 100644 --- a/vitragedashboard/static/dashboard/project/components/sunburst/sunburst.directive.js +++ b/vitragedashboard/static/dashboard/project/components/sunburst/sunburst.directive.js @@ -5,7 +5,7 @@ angular function sunburst() { var directive = { link: link, - templateUrl: 'dashboard/project/components/sunburst/sunburst.html', + templateUrl: STATIC_URL+'dashboard/project/components/sunburst/sunburst.html', restrict: 'E' }; return directive;