diff options
Diffstat (limited to 'docs/src/templates/index.html')
| -rw-r--r-- | docs/src/templates/index.html | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/docs/src/templates/index.html b/docs/src/templates/index.html index 9c30df96..ccd8f108 100644 --- a/docs/src/templates/index.html +++ b/docs/src/templates/index.html @@ -18,7 +18,6 @@ baseUrl = location.href.replace(rUrl, indexFile), jQuery = /index-jq[^\.]*\.html$/.test(baseUrl), debug = /index[^\.]*-debug\.html$/.test(baseUrl), - angularPath = debug ? '../angular.js' : '../angular.min.js', headEl = document.getElementsByTagName('head')[0], sync = true; @@ -28,10 +27,15 @@ type: 'text/css'}); addTag('script', {src: 'syntaxhighlighter/syntaxhighlighter-combined.js'}, sync); if (jQuery) addTag('script', {src: 'jquery.min.js'}); - addTag('script', {src: angularPath}, sync); + addTag('script', {src: path('angular.js')}, sync); + addTag('script', {src: path('angular-resource.js') }, sync); addTag('script', {src: 'docs-combined.js'}, sync); addTag('script', {src: 'docs-keywords.js'}, sync); + function path(name) { + return '../' + name.replace(/\.js$/, debug ? '.js' : '.min.js'); + } + function addTag(name, attributes, sync) { var el = document.createElement(name), attrName; |
