From 1429ee3ebaa57f8ffc9d243b52f27687cc9d38fb Mon Sep 17 00:00:00 2001 From: Arul Date: Tue, 2 Oct 2012 01:42:48 +0800 Subject: [PATCH] setting content type to JSON for http PATCH Updating OperationView.coffee to add JSON content type for PATCH similar to POST and PUT so that the newly added PATCH works fine --- src/main/coffeescript/view/OperationView.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/coffeescript/view/OperationView.coffee b/src/main/coffeescript/view/OperationView.coffee index 8bd8b8b7..67935356 100644 --- a/src/main/coffeescript/view/OperationView.coffee +++ b/src/main/coffeescript/view/OperationView.coffee @@ -78,7 +78,7 @@ class OperationView extends Backbone.View complete: (data) => @showCompleteStatus(data) - obj.contentType = "application/json" if (obj.type.toLowerCase() == "post" or obj.type.toLowerCase() == "put") + obj.contentType = "application/json" if (obj.type.toLowerCase() == "post" or obj.type.toLowerCase() == "put" or obj.type.toLowerCase() == "patch") jQuery.ajax(obj) false