We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3ccc9f3 + 3c7b7b4 commit 78ca61eCopy full SHA for 78ca61e
js/jquery.smartTab.js
@@ -65,10 +65,11 @@
65
66
function setEvents(){
67
$(tabs).bind("click", function(e){
68
- if(tabs.index(this)==obj.data('curTabIdx')) return false;
69
- showTab(tabs.index(this));
70
- if(options.autoProgress) restartAutoProgress();
71
- return false;
+ e.preventDefault();
+ if(tabs.index(this)!=obj.data('curTabIdx')) {
+ showTab(tabs.index(this));
+ if(options.autoProgress) restartAutoProgress();
72
+ }
73
});
74
75
if(options.keyNavigation){
0 commit comments