aboutsummaryrefslogtreecommitdiffstats
path: root/docs/src/templates/doc_widgets.js
diff options
context:
space:
mode:
authorVojta Jina2011-07-26 23:16:39 +0200
committerIgor Minar2011-07-26 14:20:24 -0700
commit00ea08e0ab2a0154e168e63f2505d885bbca9096 (patch)
tree9033b4dbf0ee1b840742668e725a6af42c774241 /docs/src/templates/doc_widgets.js
parent31b59efa961e8729a0153d7d6ea5e300d7db17f2 (diff)
downloadangular.js-00ea08e0ab2a0154e168e63f2505d885bbca9096.tar.bz2
doc(tutorial): fix navigation widget to work without jQuery
jqLite doesn't support class selectors, can find only by tag name...
Diffstat (limited to 'docs/src/templates/doc_widgets.js')
-rw-r--r--docs/src/templates/doc_widgets.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/docs/src/templates/doc_widgets.js b/docs/src/templates/doc_widgets.js
index c995857c..fd71396e 100644
--- a/docs/src/templates/doc_widgets.js
+++ b/docs/src/templates/doc_widgets.js
@@ -146,8 +146,9 @@
this.descend(true);
var tabs = angular.element(HTML_TPL.replace('{show}', element.attr('show') || 'false')),
- nav = tabs.find('.tabs-nav ul'),
- content = tabs.find('.tabs-content-inner'),
+ nav = tabs.find('ul'),
+ // use simple selectors because jqLite find() supports getElementsByTagName only
+ content = tabs.find('div').find('div'),
children = element.children();
if (children.length) {