The issue was identified when loading Wok UI on Chrome but it could
happen on any browser if the request to /plugins takes more than
expected.
All that, because the setTimeout function was not passing the parameters
to the second call to buildTabs.
Signed-off-by: Aline Manera <alinefm(a)linux.vnet.ibm.com>
---
ui/js/src/wok.main.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ui/js/src/wok.main.js b/ui/js/src/wok.main.js
index 20c017e..c8c3889 100644
--- a/ui/js/src/wok.main.js
+++ b/ui/js/src/wok.main.js
@@ -141,7 +141,7 @@ wok.main = function() {
var buildTabs = function(callback) {
// Make wok.plugins is ready to be used
if (wok.plugins == undefined) {
- setTimeout(buildTabs, 2000);
+ setTimeout(function() {buildTabs(callback)}, 2000);
return;
}
--
2.9.3