Skip to content

Commit 00ea08e

Browse files
vojtajinaIgorMinar
authored andcommitted
doc(tutorial): fix navigation widget to work without jQuery
jqLite doesn't support class selectors, can find only by tag name...
1 parent 31b59ef commit 00ea08e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/src/templates/doc_widgets.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,9 @@
146146
this.descend(true);
147147

148148
var tabs = angular.element(HTML_TPL.replace('{show}', element.attr('show') || 'false')),
149-
nav = tabs.find('.tabs-nav ul'),
150-
content = tabs.find('.tabs-content-inner'),
149+
nav = tabs.find('ul'),
150+
// use simple selectors because jqLite find() supports getElementsByTagName only
151+
content = tabs.find('div').find('div'),
151152
children = element.children();
152153

153154
if (children.length) {

0 commit comments

Comments
 (0)