Show More
@@ -6,7 +6,7 b' define([' | |||||
6 | 'jquery', |
|
6 | 'jquery', | |
7 | 'base/js/utils', |
|
7 | 'base/js/utils', | |
8 | ], function(IPython, $, utils) { |
|
8 | ], function(IPython, $, utils) { | |
9 |
var ContentManager = function( |
|
9 | var ContentManager = function(options) { | |
10 | // Constructor |
|
10 | // Constructor | |
11 | // |
|
11 | // | |
12 | // A contentmanager handles passing file operations |
|
12 | // A contentmanager handles passing file operations | |
@@ -14,13 +14,15 b' define([' | |||||
14 | // with the normal file operations. |
|
14 | // with the normal file operations. | |
15 | // |
|
15 | // | |
16 | // Parameters: |
|
16 | // Parameters: | |
17 | // notebook_path |
|
17 | // options: dictionary | |
18 | // base_url |
|
18 | // Dictionary of keyword arguments. | |
|
19 | // notebook_path: string | |||
|
20 | // base_url: string | |||
19 | this.version = 0.1; |
|
21 | this.version = 0.1; | |
20 | this.notebook_path = notebook_path; |
|
22 | this.notebook_path = options.notebook_path; | |
21 | this.base_url = base_url; |
|
23 | this.base_url = options.base_url; | |
22 | }; |
|
24 | }; | |
23 |
|
25 | |||
24 | ContentManager.prototype.new_notebook = function() { |
|
26 | ContentManager.prototype.new_notebook = function() { | |
25 | var path = this.notebook_path; |
|
27 | var path = this.notebook_path; | |
26 | var base_url = this.base_url; |
|
28 | var base_url = this.base_url; |
General Comments 0
You need to be logged in to leave comments.
Login now