Skip to content

Commit

Permalink
Fix for next tab
Browse files Browse the repository at this point in the history
Fixed next tab setup.
Thanks sebastianmenendez
  • Loading branch information
drsdre authored Dec 28, 2016
1 parent 02546ec commit 51ef01d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/wizardwidget.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ $(document).ready(function () {
// Manage next step button click
$(document).on("click", ".next-step", function (e) {
var $tab_active = $('.wizard .nav-tabs li.active');
var $next_tab = $active.next();
var $next_tab = $tab_active.next();
var $function = jQuery(this).data('function') || false;

if ($function){
Expand Down Expand Up @@ -66,4 +66,4 @@ function nextTab(elem) {
// 'click' on prev tab
function prevTab(elem) {
$(elem).prev().find('a[data-toggle="tab"]').click();
}
}

0 comments on commit 51ef01d

Please sign in to comment.