diff --git a/site/docs/3.1.1/js/main.js b/site/docs/3.1.1/js/main.js index 968097c8041..d0b327147a5 100755 --- a/site/docs/3.1.1/js/main.js +++ b/site/docs/3.1.1/js/main.js @@ -50,7 +50,8 @@ function codeTabs() { var buttonLabel = "" } tabBar.append( - '' + '' ); }); @@ -63,7 +64,7 @@ function codeTabs() { // while retaining the scroll position e.preventDefault(); var scrollOffset = $(this).offset().top - $(document).scrollTop(); - $("." + $(this).attr('class')).tab('show'); + $("." + $(this).attr('data-tab-lang')).tab('show'); $(document).scrollTop($(this).offset().top - scrollOffset); }); }