Etemplate - Hide tabs from tab widget if there's only one tab

This commit is contained in:
nathangray 2018-08-02 09:23:30 -06:00
parent dd4f998b36
commit 04334eb0f0

View File

@ -338,7 +338,7 @@ var et2_tabbox = (function(){ "use strict"; return et2_valueWidget.extend([et2_I
entry.flagDiv.addClass(entry.widget_options.class);
}
entry.flagDiv.text(entry.label || "Tab");
if(entry.hidden)
if(entry.hidden || this.tabData.length === 1)
{
entry.flagDiv.hide();
}