mirror of
https://github.com/jupyter/notebook.git
synced 2025-02-23 12:49:41 +08:00
load_file -> load
This commit is contained in:
parent
1f2e4cc6c3
commit
2a497c16eb
@ -2115,7 +2115,7 @@ define([
|
|||||||
this.notebook_name = notebook_name;
|
this.notebook_name = notebook_name;
|
||||||
this.notebook_path = notebook_path;
|
this.notebook_path = notebook_path;
|
||||||
this.events.trigger('notebook_loading.Notebook');
|
this.events.trigger('notebook_loading.Notebook');
|
||||||
this.contents.load_file(notebook_path, notebook_name, {
|
this.contents.load(notebook_path, notebook_name, {
|
||||||
success: $.proxy(this.load_notebook_success, this),
|
success: $.proxy(this.load_notebook_success, this),
|
||||||
error: $.proxy(this.load_notebook_error, this)
|
error: $.proxy(this.load_notebook_error, this)
|
||||||
});
|
});
|
||||||
|
@ -77,7 +77,7 @@ define([
|
|||||||
* @param {Function} success
|
* @param {Function} success
|
||||||
* @param {Function} error
|
* @param {Function} error
|
||||||
*/
|
*/
|
||||||
Contents.prototype.load_file = function (path, name, options) {
|
Contents.prototype.load = function (path, name, options) {
|
||||||
// We do the call with settings so we can set cache to false.
|
// We do the call with settings so we can set cache to false.
|
||||||
var settings = {
|
var settings = {
|
||||||
processData : false,
|
processData : false,
|
||||||
|
Loading…
Reference in New Issue
Block a user