Show More
@@ -5,7 +5,7 b' define([' | |||
|
5 | 5 | 'base/js/namespace', |
|
6 | 6 | 'jquery', |
|
7 | 7 | 'base/js/events' |
|
8 |
], function(IPython, $, |
|
|
8 | ], function(IPython, $, events) { | |
|
9 | 9 | "use strict"; |
|
10 | 10 | |
|
11 | 11 | var CellToolbar = function (options) { |
@@ -177,7 +177,7 b' define([' | |||
|
177 | 177 | */ |
|
178 | 178 | CellToolbar.register_preset = function(name, preset_list, notebook) { |
|
179 | 179 | CellToolbar._presets[name] = preset_list; |
|
180 |
|
|
|
180 | events.trigger('preset_added.CellToolbar', {name: name}); | |
|
181 | 181 | // When "register_callback" is called by a custom extension, it may be executed after notebook is loaded. |
|
182 | 182 | // In that case, activate the preset if needed. |
|
183 | 183 | if (notebook && notebook.metadata && notebook.metadata.celltoolbar === name){ |
@@ -223,7 +223,7 b' define([' | |||
|
223 | 223 | CellToolbar.rebuild_all(); |
|
224 | 224 | } |
|
225 | 225 | |
|
226 |
|
|
|
226 | events.trigger('preset_activated.CellToolbar', {name: preset_name}); | |
|
227 | 227 | }; |
|
228 | 228 | |
|
229 | 229 |
General Comments 0
You need to be logged in to leave comments.
Login now