From 239c178b685294ce24ab79d913c5df03d15191e9 Mon Sep 17 00:00:00 2001 From: Marcus Bointon Date: Thu, 22 Mar 2012 21:24:57 +0100 Subject: [PATCH] Clarify docs on how tabs are activated from JS, see #1000 --- docs/assets/bootstrap.zip | Bin 50100 -> 50100 bytes docs/javascript.html | 10 +++++++--- docs/templates/pages/javascript.mustache | 10 +++++++--- 3 files changed, 14 insertions(+), 6 deletions(-) diff --git a/docs/assets/bootstrap.zip b/docs/assets/bootstrap.zip index 716a5d50990fcefde2495c0aadcd762961d22bb5..80e5096dfb73c659066e2c527bd0aff94b93cc7d 100644 GIT binary patch delta 464 zc-q_2&b+0anJ2)TnT3l11b(lY$fKwn)s^iZ2gIcn+zgB?Ul|z~Slob;2xWg(O$<0W$oVx#{|$A)E}%QE)4MubLcI?aUSh(LTSrQUD|*)nf}2 zitVWu0GW7ejtYv)CM(W0fH@?5ZmJ?kXx}~ysL_|Ll46#ENRtEs8U9%|w delta 464 zc-q_2&b+0anJ2)TnT3l11ge)z<6eChg)x3_Qt1tw4Aa)gR(zQJY0!Bo9uGLNtkn-ow;s(!PJaFi)X z)dCMQuqvR?9S;K|psI-hGW?mj>H47|oD9s8a4Ue?!>XOxKmwBWo99fX?~|qX>oZ9riviUp9+a8f zzF(XPtX3AJd;flKB%byGe;5yF!t4VMOj2;UKL=cx(CtV(XbiCftbXgkKqQ{}A#V)( ZCm%9GvhCR+J5&>aVy=hXKw`az)dAECoR0ti diff --git a/docs/javascript.html b/docs/javascript.html index f2d23ef52a..39cb5c5a5e 100644 --- a/docs/javascript.html +++ b/docs/javascript.html @@ -636,9 +636,13 @@ $('#myModal').on('hidden', function () {

Using bootstrap-tab.js

-

Enable tabbable tabs via javascript:

-
$('#myTab').tab('show')
-

You can select individual tabs in several ways:

+

Enable tabbable tabs via javascript (each tab needs to be activated individually):

+
+$('#myTab a').click(function (e) {
+  e.preventDefault();
+  $(this).tab('show');
+})
+

You can activate individual tabs in several ways:

 $('#myTab a[href="#profile"]').tab('show'); //Select tab by name
 $('#myTab a:first').tab('show'); //Select first tab
diff --git a/docs/templates/pages/javascript.mustache b/docs/templates/pages/javascript.mustache
index 925377339b..c6d1f403c4 100644
--- a/docs/templates/pages/javascript.mustache
+++ b/docs/templates/pages/javascript.mustache
@@ -560,9 +560,13 @@ $('#myModal').on('hidden', function () {
           
           

{{_i}}Using bootstrap-tab.js{{/i}}

-

{{_i}}Enable tabbable tabs via javascript:{{/i}}

-
$('#myTab').tab('show')
-

{{_i}}You can select individual tabs in several ways:{{/i}}

+

{{_i}}Enable tabbable tabs via javascript (each tab needs to be activated individually):{{/i}}

+
+$('#myTab a').click(function (e) {
+  e.preventDefault();
+  $(this).tab('show');
+})
+

{{_i}}You can activate individual tabs in several ways:{{/i}}

 $('#myTab a[href="#profile"]').tab('show'); //Select tab by name
 $('#myTab a:first').tab('show'); //Select first tab
-- 
2.47.2