From 8674cdd7c35b0630ee3d8518c33a2457bea23763 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Tue, 18 Oct 2011 15:41:30 +0000 Subject: [PATCH] Avoid undefined val breaking tabs --- etemplate/js/et2_widget_tabs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etemplate/js/et2_widget_tabs.js b/etemplate/js/et2_widget_tabs.js index 080b6f4579..f5fb0f0a03 100644 --- a/etemplate/js/et2_widget_tabs.js +++ b/etemplate/js/et2_widget_tabs.js @@ -73,7 +73,7 @@ var et2_tabbox = et2_DOMWidget.extend({ contentMgr = this.getArrayMgr("readonlys"); if (contentMgr != null) { var val = contentMgr.getEntry(this.id); - if (val !== null) + if (val !== null && typeof val !== 'undefined') { hidden = val; }