Pārlūkot izejas kodu

Merge pull request #65 from Arul-/patch-1

setting content type to JSON for http PATCH
bubble
Ayush Gupta pirms 12 gadiem
vecāks
revīzija
8afc87b6ed
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. +1
    -1
      src/main/coffeescript/view/OperationView.coffee

+ 1
- 1
src/main/coffeescript/view/OperationView.coffee Parādīt failu

@@ -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


Notiek ielāde…
Atcelt
Saglabāt