aboutsummaryrefslogtreecommitdiffstats
path: root/docs/components
diff options
context:
space:
mode:
authorMatias Niemelä2013-05-16 16:05:21 -0400
committerMisko Hevery2013-05-20 14:33:11 -0700
commit5f92d4144ea3c8c8fc33e163b3973401b527a4bd (patch)
tree0211a1f8a6108bdb21c689ef084d2093b42faecd /docs/components
parent2f571a9c830df814902fbdda1e9240b36bb64e3e (diff)
downloadangular.js-5f92d4144ea3c8c8fc33e163b3973401b527a4bd.tar.bz2
fix(ngdocs): provide test code for syntax links in docs and fix the syntax directive for IE8
Diffstat (limited to 'docs/components')
-rw-r--r--docs/components/bootstrap/bootstrap.js12
1 files changed, 8 insertions, 4 deletions
diff --git a/docs/components/bootstrap/bootstrap.js b/docs/components/bootstrap/bootstrap.js
index 91d6590e..3e1c8d00 100644
--- a/docs/components/bootstrap/bootstrap.js
+++ b/docs/components/bootstrap/bootstrap.js
@@ -57,7 +57,8 @@ directive.syntax = function() {
'<span class="' + icon + '"></span> ' + text +
'</a>';
};
- var html = '<nav class="syntax-links">';
+
+ var html = '';
var types = {
'github' : {
text : 'View on Github',
@@ -82,11 +83,14 @@ directive.syntax = function() {
html += makeLink(type, data.text, link, data.icon);
}
};
- html += '</nav>';
- var nav = angular.element(html);
+
+ var nav = document.createElement('nav');
+ nav.className = 'syntax-links';
+ nav.innerHTML = html;
+
var node = element[0];
var par = node.parentNode;
- par.insertBefore(nav[0], node);
+ par.insertBefore(nav, node);
}
}
}