git://git.onelab.eu
/
myslice.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
094cdb7
)
plugins.tabs: fixed shown event (used to refresh googlemaps)
author
Jordan Augé
<jordan.auge@lip6.fr>
Thu, 26 Sep 2013 10:05:07 +0000
(12:05 +0200)
committer
Jordan Augé
<jordan.auge@lip6.fr>
Thu, 26 Sep 2013 10:05:07 +0000
(12:05 +0200)
plugins/tabs/static/js/tabs.js
patch
|
blob
|
history
diff --git
a/plugins/tabs/static/js/tabs.js
b/plugins/tabs/static/js/tabs.js
index
b5b1cd0
..
64c6921
100644
(file)
--- 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');
});