From b47424198c6da0c5876f7aa917ff55da091b0a5f Mon Sep 17 00:00:00 2001 From: Dominik Csapak Date: Fri, 2 Sep 2016 12:50:38 +0200 Subject: [PATCH] set the first tab of a page active else no tab would be selected by default, but the first would still be shown, leading to confusion which tab is active Signed-off-by: Dominik Csapak --- api-viewer/PVEAPI.js | 1 + 1 file changed, 1 insertion(+) diff --git a/api-viewer/PVEAPI.js b/api-viewer/PVEAPI.js index 47dbe88..a27d6c4 100644 --- a/api-viewer/PVEAPI.js +++ b/api-viewer/PVEAPI.js @@ -239,6 +239,7 @@ Ext.onReady(function() { ct.setTitle("Path: " + data.path); ct.removeAll(true); ct.add(items); + ct.setActiveTab(0); }; var tree = Ext.create('Ext.tree.Panel', {