[Kimchi-devel] [PATCH v2 6/8] Debug Report Rename UI: Add API in kimchi.api.js

Sheldon shaohef at linux.vnet.ibm.com
Thu May 22 13:54:05 UTC 2014


Reviewed-by: ShaoHe Feng <shaohef at linux.vnet.ibm.com>

On 05/22/2014 03:55 PM, Hongliang Wang wrote:
> Added API.
>
> Signed-off-by: Hongliang Wang <hlwang at linux.vnet.ibm.com>
> ---
>   ui/js/src/kimchi.api.js | 12 ++++++++++++
>   1 file changed, 12 insertions(+)
>
> diff --git a/ui/js/src/kimchi.api.js b/ui/js/src/kimchi.api.js
> index 7d85fdf..584eabe 100644
> --- a/ui/js/src/kimchi.api.js
> +++ b/ui/js/src/kimchi.api.js
> @@ -695,6 +695,18 @@ var kimchi = {
>           });
>       },
>
> +    renameReport : function(name, settings, suc, err) {
> +        $.ajax({
> +            url : kimchi.url + "debugreports/" + encodeURIComponent(name),
> +            type : 'PUT',
> +            contentType : 'application/json',
> +            data : JSON.stringify(settings),
> +            dataType : 'json',
> +            success: suc,
> +            error: err
> +        });
> +    },
> +
>       deleteReport: function(settings, suc, err) {
>           var reportName = encodeURIComponent(settings['name']);
>           kimchi.requestJSON({


-- 
Thanks and best regards!

Sheldon Feng(冯少合)<shaohef at linux.vnet.ibm.com>
IBM Linux Technology Center




More information about the Kimchi-devel mailing list