From 2f5a09b9dedacdf96a7cac41ae9fdafc1944f902 Mon Sep 17 00:00:00 2001 From: Federico Soria <fedesoria@gmail.com> Date: Mon, 20 Feb 2012 19:05:08 -0700 Subject: [PATCH] Change example for Tabs on 'shown' so it catches it after the DOM is loaded --- docs/javascript.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/javascript.html b/docs/javascript.html index 612724c798..00a74e7eb4 100644 --- a/docs/javascript.html +++ b/docs/javascript.html @@ -682,7 +682,7 @@ $('#myModal').on('hidden', function () { </table> <pre class="prettyprint linenums"> -$('a[data-toggle="tab"]').on('shown', function (e) { +$('body').on('shown', 'a[data-toggle="tab"]', function (e) { e.target // activated tab e.relatedTarget // previous tab })</pre> -- GitLab