Merge pull request #6693 from minrk/please-no-jsonp

set contentType='application/json'
Matthias Bussonnier 12 years ago
commit 7ae250bbeb

@ -1941,7 +1941,7 @@ define([
cache : false,
type : "PUT",
data : JSON.stringify(model),
headers : {'Content-Type': 'application/json'},
contentType: 'application/json',
dataType : "json",
success : $.proxy(this.save_notebook_success, this, start),
error : $.proxy(this.save_notebook_error, this)
@ -2158,7 +2158,7 @@ define([
type : "PATCH",
data : JSON.stringify(data),
dataType: "json",
headers : {'Content-Type': 'application/json'},
contentType: 'application/json',
success : $.proxy(that.rename_success, this),
error : $.proxy(that.rename_error, this)
};

@ -434,7 +434,7 @@ define([
cache : false,
type : 'PUT',
data : JSON.stringify(model),
headers : {'Content-Type': content_type},
contentType: content_type,
success : function (data, status, xhr) {
item.removeClass('new-file');
that.add_link(model, item);

@ -8,7 +8,9 @@ casper.notebook_test(function () {
// This causes no actual problems, but will break string comparison.
var nbname = "has#hash and space and unicø∂e.ipynb";
this.evaluate(function (nbname) {
this.append_cell("s = '??'", 'code');
this.thenEvaluate(function (nbname) {
require(['base/js/events'], function (events) {
IPython.notebook.notebook_name = nbname;
IPython._save_success = IPython._save_failed = false;

Loading…
Cancel
Save