From: Atreyee Mukhopadhyay <atreyee(a)linux.vnet.ibm.com>
Changes for handling page not found error of tab-ext.xml for
plugins not having UI tabs.
---
ui/js/src/wok.main.js | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/ui/js/src/wok.main.js b/ui/js/src/wok.main.js
index b7b13a2..749a009 100644
--- a/ui/js/src/wok.main.js
+++ b/ui/js/src/wok.main.js
@@ -97,7 +97,12 @@ wok.main = function() {
async : false,
success : function(xmlData) {
tabs = parseTabs(xmlData);
- }
+ },
+ statusCode : {
+ 404:function(){
+ return tabs;
+ }
+ }
});
return tabs;
};
--
2.1.0