The tabs received no click event.
if ($this.parent().hasClass('active')) {
active = ' in';
}
// Added click event for tabs.
$this.click(function (e) {
e.preventDefault();
$this.tab('show');
});
http://fiddle.jshell.net/y7TS5/3/
http://fiddle.jshell.net/y7TS5/3/show/