From fab9d61eb81f60358f2208614cd191773670be82 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jordan=20Aug=C3=A9?= Date: Thu, 26 Sep 2013 12:05:07 +0200 Subject: [PATCH] plugins.tabs: fixed shown event (used to refresh googlemaps) --- plugins/tabs/static/js/tabs.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/tabs/static/js/tabs.js b/plugins/tabs/static/js/tabs.js index b5b1cd0b..64c6921a 100644 --- a/plugins/tabs/static/js/tabs.js +++ b/plugins/tabs/static/js/tabs.js @@ -2,7 +2,9 @@ $.fn.Tabs = function( method ) { - $('a[data-toggle="tab"]').on('shown', function (e) { + // In Bootstrap 3, we need shown.bs.tab instrad of shown. + // see: http://bootply.com/bootstrap-3-migration-guide + $('a[data-toggle="tab"]').on('shown.bs.tab', function (e) { // find the plugin object inside the tab content referenced by the current tabs $('.plugin', $($(e.target).attr('href'))).trigger('show'); }); -- 2.43.0