Show More
@@ -214,7 +214,7 b' var IPython = (function (IPython) {' | |||
|
214 | 214 | * |
|
215 | 215 | * CellToolbar.activate_preset('foo.foo_preset1'); |
|
216 | 216 | */ |
|
217 | CellToolbar.activate_preset= function(preset_name){ | |
|
217 | CellToolbar.activate_preset = function(preset_name){ | |
|
218 | 218 | var preset = CellToolbar._presets[preset_name]; |
|
219 | 219 | |
|
220 | 220 | if(preset != undefined){ |
@@ -147,9 +147,11 b' var IPython = (function (IPython) {' | |||
|
147 | 147 | var val = $(this).val() |
|
148 | 148 | if (val =='') { |
|
149 | 149 | IPython.CellToolbar.global_hide(); |
|
150 | delete IPython.notebook.metadata.celltoolbar; | |
|
150 | 151 | } else { |
|
151 | 152 | IPython.CellToolbar.global_show(); |
|
152 | 153 | IPython.CellToolbar.activate_preset(val); |
|
154 | IPython.notebook.metadata.celltoolbar = val; | |
|
153 | 155 | } |
|
154 | 156 | }); |
|
155 | 157 | // Setup the currently registered presets. |
@@ -1958,7 +1958,14 b' var IPython = (function (IPython) {' | |||
|
1958 | 1958 | this.start_session(); |
|
1959 | 1959 | } |
|
1960 | 1960 | // load our checkpoint list |
|
1961 |
|
|
|
1961 | this.list_checkpoints(); | |
|
1962 | ||
|
1963 | // load toolbar state | |
|
1964 | if (this.metadata.celltoolbar) { | |
|
1965 | IPython.CellToolbar.global_show(); | |
|
1966 | IPython.CellToolbar.activate_preset(this.metadata.celltoolbar); | |
|
1967 | } | |
|
1968 | ||
|
1962 | 1969 | $([IPython.events]).trigger('notebook_loaded.Notebook'); |
|
1963 | 1970 | }; |
|
1964 | 1971 |
General Comments 0
You need to be logged in to leave comments.
Login now