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

Aline Manera alinefm at linux.vnet.ibm.com
Wed Dec 16 13:32:14 UTC 2015


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 at linux.vnet.ibm.com wrote:
> 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;
>       };




More information about the Kimchi-devel mailing list