##// END OF EJS Templates
Merge pull request #8419 from takluyver/backport-notebook-72...
Kyle Kelley -
r21344:3b6f3012 merge
parent child Browse files
Show More
@@ -117,6 +117,7 b' define(function(require) {'
117 117 processData : false,
118 118 type : "POST",
119 119 data: data,
120 contentType: 'application/json',
120 121 dataType : "json",
121 122 };
122 123 return utils.promising_ajax(this.api_url(path), settings);
@@ -181,6 +182,7 b' define(function(require) {'
181 182 processData : false,
182 183 type: "POST",
183 184 data: JSON.stringify({copy_from: from_file}),
185 contentType: 'application/json',
184 186 dataType : "json",
185 187 };
186 188 return utils.promising_ajax(url, settings);
@@ -195,6 +197,7 b' define(function(require) {'
195 197 var settings = {
196 198 type : "POST",
197 199 dataType : "json",
200 contentType: false, // no data
198 201 };
199 202 return utils.promising_ajax(url, settings);
200 203 };
@@ -213,6 +216,7 b' define(function(require) {'
213 216 var url = this.api_url(path, 'checkpoints', checkpoint_id);
214 217 var settings = {
215 218 type : "POST",
219 contentType: false, // no data
216 220 };
217 221 return utils.promising_ajax(url, settings);
218 222 };
@@ -196,6 +196,7 b' define(['
196 196 cache: false,
197 197 type: "POST",
198 198 data: JSON.stringify({name: this.name}),
199 contentType: 'application/json',
199 200 dataType: "json",
200 201 success: this._on_success(on_success),
201 202 error: this._on_error(error)
@@ -278,6 +279,7 b' define(['
278 279 processData: false,
279 280 cache: false,
280 281 type: "POST",
282 contentType: false, // no data
281 283 dataType: "json",
282 284 success: this._on_success(on_success),
283 285 error: this._on_error(error)
@@ -319,6 +321,7 b' define(['
319 321 processData: false,
320 322 cache: false,
321 323 type: "POST",
324 contentType: false, // no data
322 325 dataType: "json",
323 326 success: this._on_success(on_success),
324 327 error: this._on_error(on_error)
@@ -121,6 +121,7 b' define(['
121 121 cache: false,
122 122 type: "POST",
123 123 data: JSON.stringify(this._get_model()),
124 contentType: 'application/json',
124 125 dataType: "json",
125 126 success: this._on_success(on_success),
126 127 error: this._on_error(on_error)
@@ -168,6 +169,7 b' define(['
168 169 cache: false,
169 170 type: "PATCH",
170 171 data: JSON.stringify(this._get_model()),
172 contentType: 'application/json',
171 173 dataType: "json",
172 174 success: this._on_success(success),
173 175 error: this._on_error(error)
General Comments 0
You need to be logged in to leave comments. Login now