Skip to content

Commit

Permalink
Attempting to provide a better fix for #142 (comment)
Browse files Browse the repository at this point in the history
  • Loading branch information
thednp committed Jul 6, 2017
1 parent 351ae64 commit 46d5a50
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 4 deletions.
1 change: 1 addition & 0 deletions dist/bootstrap-native-v4.js
Original file line number Diff line number Diff line change
Expand Up @@ -1461,6 +1461,7 @@

// public method
this.show = function() { // the tab we clicked is now the next tab
next = next || element;
nextContent = queryElement(next[getAttribute]('href')); //this is the actual object, the next tab content to activate
activeTab = getActiveTab();
activeContent = getActiveContent();
Expand Down
2 changes: 1 addition & 1 deletion dist/bootstrap-native-v4.min.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/bootstrap-native.js
Original file line number Diff line number Diff line change
Expand Up @@ -1616,6 +1616,7 @@

// public method
this.show = function() { // the tab we clicked is now the next tab
next = next || element;
nextContent = queryElement(next[getAttribute]('href')); //this is the actual object, the next tab content to activate
activeTab = getActiveTab();
activeContent = getActiveContent();
Expand Down
2 changes: 1 addition & 1 deletion dist/bootstrap-native.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1586,8 +1586,8 @@ <h4>Options</h4>
</tr>
</tbody>
</table>
<p>If a tooltip is a child element of a modal, a <code>&lt;nav class="navbar-fixed-top"&gt;</code> or a <code>&lt;nav class="navbar-fixed-bottom"&gt;</code>, the <code>container</code> option is set automatically to target that specific parent starting with version 2.0.6.</p>
</div>
<p>If a tooltip is a child element of a modal, a <code>&lt;nav class="navbar-fixed-top"&gt;</code> or a <code>&lt;nav class="navbar-fixed-bottom"&gt;</code>, the <code>container</code> option is set automatically to target that specific parent starting with version 2.0.6.</p>
</section>

<section id="tooltipMethods">
Expand Down Expand Up @@ -1814,8 +1814,8 @@ <h4>Options</h4>
</tr>
</tbody>
</table>
<p>If a popover is a child element of a modal, a <code>&lt;nav class="navbar-fixed-top"&gt;</code> or a <code>&lt;nav class="navbar-fixed-bottom"&gt;</code> element, the <code>container</code> option is set automatically to target that specific parent starting with version 2.0.6.</p>
</div>
<p>If a popover is a child element of a modal, a <code>&lt;nav class="navbar-fixed-top"&gt;</code> or a <code>&lt;nav class="navbar-fixed-bottom"&gt;</code> element, the <code>container</code> option is set automatically to target that specific parent starting with version 2.0.6.</p>
<p>If a proper template is not specified via JavaScript or the content option is not set in any way, the <b>Popover</b> will not be initialized.</p>
</section>

Expand Down
1 change: 1 addition & 0 deletions lib/V3/tab-native.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ var Tab = function( element, options ) {

// public method
this.show = function() { // the tab we clicked is now the next tab
next = next || element;
nextContent = queryElement(next[getAttribute]('href')); //this is the actual object, the next tab content to activate
activeTab = getActiveTab();
activeContent = getActiveContent();
Expand Down
1 change: 1 addition & 0 deletions lib/V4/tab-native.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ var Tab = function( element, options ) {

// public method
this.show = function() { // the tab we clicked is now the next tab
next = next || element;
nextContent = queryElement(next[getAttribute]('href')); //this is the actual object, the next tab content to activate
activeTab = getActiveTab();
activeContent = getActiveContent();
Expand Down

0 comments on commit 46d5a50

Please sign in to comment.