[Kimchi-devel] [PATCH] [Wok] Page not found error handling for tab-ext.xml
atreyee at linux.vnet.ibm.com
atreyee at linux.vnet.ibm.com
Tue Dec 15 12:49:54 UTC 2015
From: Atreyee Mukhopadhyay <atreyee at 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
More information about the Kimchi-devel
mailing list