[Kimchi-devel] [RFC PATCH V2 24/31] Default to first tab of first plugin
Lucio Correia
luciojhc at linux.vnet.ibm.com
Mon Jun 22 22:59:38 UTC 2015
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 at linux.vnet.ibm.com>
Signed-off-by: Gustavo Y. Ribeiro <gyr at 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
More information about the Kimchi-devel
mailing list