diff --git a/api/js/etemplate/et2_widget_tabs.js b/api/js/etemplate/et2_widget_tabs.js index 702ef6aad8..76749ef1c8 100644 --- a/api/js/etemplate/et2_widget_tabs.js +++ b/api/js/etemplate/et2_widget_tabs.js @@ -352,7 +352,7 @@ var et2_tabbox = (function(){ "use strict"; return et2_valueWidget.extend([et2_I .text(entry.label || "Tab") .click({"tabs": this, "idx": i}, function(e) { e.data.tabs.flagContainer.children(":eq(" + e.data.idx + ")").toggleClass('active'); - e.data.tabs.setActiveTab(e.data.idx); + if (e.data.tabs.selected_index != e.data.idx) e.data.tabs.setActiveTab(e.data.idx); }) .appendTo(entry.flagDiv); entry.contentDiv.appendTo(entry.flagDiv);