Still let the selected tab be minimized by clicking on "-" button for v-tabs

This commit is contained in:
Hadi Nategh 2016-04-26 16:38:38 +00:00
parent c376aab408
commit 76106188dc

View File

@ -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);