[pve-devel] [PATCH docs 1/2] set the first tab of a page active

Dominik Csapak d.csapak at proxmox.com
Fri Sep 2 12:50:38 CEST 2016


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 <d.csapak at proxmox.com>
---
 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', {
-- 
2.1.4




More information about the pve-devel mailing list