Updated (deprecated, unregistered) 'text/json' with 'application/json' everwhere. Commit ready for merge.

- Legacy-Id: 14843
This commit is contained in:
Adam Roach 2018-03-17 15:14:57 +00:00
parent 49f00b76ea
commit 3c4c0f2584
4 changed files with 7 additions and 7 deletions

View file

@ -1224,7 +1224,7 @@ def group_json(request, acronym):
return HttpResponse(json.dumps(group.json_dict(request.build_absolute_uri('/')),
sort_keys=True, indent=2),
content_type="text/json")
content_type="application/json")
@cache_control(public=True, max_age=30*60)
@cache_page(30 * 60)

View file

@ -10,5 +10,5 @@ def person_json(request, personid):
return HttpResponse(json.dumps(person.json_dict(request.build_absolute_uri("/")),
sort_keys=True, indent=2),
content_type="text/json")
content_type="application/json")

View file

@ -470,7 +470,7 @@ ScheduledSlot.prototype.saveit = function() {
var stuff = JSON.stringify(stuffjson, null, '\t');
var saveit = $.ajax(assignments_post_href,{
"content-type": "text/json",
"content-type": "application/json",
"type": "POST",
"data": stuff,
});
@ -491,7 +491,7 @@ ScheduledSlot.prototype.set_pinned = function(state, completefunc) {
var ss = this;
var pinned_struct = { "pinned" : state };
var pinned_update = $.ajax(this.href, {
"content-type": "text/json",
"content-type": "application/json",
"type": "PUT",
"data": pinned_struct,
});
@ -534,7 +534,7 @@ function remove_from_slot_status(domid, ss_id) {
ScheduledSlot.prototype.deleteit = function() {
var deleteit = $.ajax(this.href, {
"content-type": "text/json",
"content-type": "application/json",
"type": "DELETE",
});
// now nuke self!

View file

@ -307,7 +307,7 @@ function insert_timeslotedit_cell(ts) {
var purpose_struct = { "purpose" : newpurpose };
var purpose_update = $.ajax(ts.href, {
"content-type": "text/json",
"content-type": "application/json",
"type": "PUT",
"data": purpose_struct,
});
@ -364,7 +364,7 @@ function create_timeslotedit_cell(slot_id) {
var new_timeslot_promise = $.ajax(meeting_slots_href, {
"content-type": "text/json",
"content-type": "application/json",
"type": "POST",
"data": ts,
});