It is now possible that wok is part of a product with
only one plugin containing a single tab. Thus it is
necessary to show the first tab of first plugin loaded
as a default upon login.
Signed-off-by: Lucio Correia <luciojhc(a)linux.vnet.ibm.com>
Signed-off-by: Gustavo Y. Ribeiro <gyr(a)linux.vnet.ibm.com>
---
ui/js/src/wok.main.js | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/ui/js/src/wok.main.js b/ui/js/src/wok.main.js
index b7797dd..f046466 100644
--- a/ui/js/src/wok.main.js
+++ b/ui/js/src/wok.main.js
@@ -99,7 +99,7 @@ wok.main = function() {
tabs.push.apply(tabs, retrieveTabs(url));
});
- var defaultTab = tabs[1]
+ var defaultTab = tabs[0]
var defaultTabPath = defaultTab && defaultTab['path']
// Remove file extension from 'defaultTabPath'
--
1.7.1