Commit c868bc54 authored by Andy's avatar Andy
Browse files

Made compatible with both bootstrap 2.3.2 and 3.0.0

Attached to both the legacy 'shown' event and new 'shown.bs.tab'.
Since only one or the other should exist. There should be no conflict.
parent 7a758fce
......@@ -197,7 +197,8 @@ var bootstrapWizardCreate = function(element, options) {
}
});
$('a[data-toggle="tab"]', $navigation).on('shown', function (e) { // use shown instead of show to help prevent double firing
// attach to both shown and shown.bs.tab to support Bootstrap versions 2.3.2 and 3.0.0
$('a[data-toggle="tab"]', $navigation).on('shown shown.bs.tab', function (e) { // use shown instead of show to help prevent double firing
$element = $(e.target).parent();
var nextTab = $navigation.find('li').index($element);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment