Merge pull request #65 from Arul-/patch-1
setting content type to JSON for http PATCH
This commit is contained in:
@@ -78,7 +78,7 @@ class OperationView extends Backbone.View
|
|||||||
complete: (data) =>
|
complete: (data) =>
|
||||||
@showCompleteStatus(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)
|
jQuery.ajax(obj)
|
||||||
false
|
false
|
||||||
|
|||||||
Reference in New Issue
Block a user