Sfoglia il codice sorgente

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

setting content type to JSON for http PATCH
bubble
Ayush Gupta 12 anni fa
parent
commit
8afc87b6ed
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. +1
    -1
      src/main/coffeescript/view/OperationView.coffee

+ 1
- 1
src/main/coffeescript/view/OperationView.coffee Vedi File

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


Caricamento…
Annulla
Salva