[PATCH] [Wok] Page not found error handling for tab-ext.xml

From: Atreyee Mukhopadhyay <atreyee@linux.vnet.ibm.com> Changes for handling page not found error of tab-ext.xml for plugins not having UI tabs. Atreyee Mukhopadhyay (1): Page not found error handling for tab-ext.xml ui/js/src/wok.main.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) -- 2.1.0

From: Atreyee Mukhopadhyay <atreyee@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

Please, use 4 spaces for indentation. I will adjust the patch before applying upstream, but make sure to use 4 spaces for indentation next time. On 15/12/2015 10:49, atreyee@linux.vnet.ibm.com wrote:
From: Atreyee Mukhopadhyay <atreyee@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; };
participants (2)
-
Aline Manera
-
atreyee@linux.vnet.ibm.com