Show More
@@ -338,6 +338,7 b' define([' | |||||
338 | } |
|
338 | } | |
339 | CodeCell.msg_cells[this.last_msg_id] = this; |
|
339 | CodeCell.msg_cells[this.last_msg_id] = this; | |
340 | this.render(); |
|
340 | this.render(); | |
|
341 | this.events.trigger('execute.CodeCell'); | |||
341 | }; |
|
342 | }; | |
342 |
|
343 | |||
343 | /** |
|
344 | /** |
@@ -6,7 +6,8 b' define([' | |||||
6 | 'jquery', |
|
6 | 'jquery', | |
7 | 'base/js/utils', |
|
7 | 'base/js/utils', | |
8 | 'base/js/dialog', |
|
8 | 'base/js/dialog', | |
9 | ], function(IPython, $, utils, dialog) { |
|
9 | 'base/js/events', | |
|
10 | ], function(IPython, $, utils, dialog, events) { | |||
10 | "use strict"; |
|
11 | "use strict"; | |
11 |
|
12 | |||
12 | var NotebookList = function (selector, options) { |
|
13 | var NotebookList = function (selector, options) { | |
@@ -187,6 +188,8 b' define([' | |||||
187 | item = this.new_item(i+offset); |
|
188 | item = this.new_item(i+offset); | |
188 | this.add_link(model, item); |
|
189 | this.add_link(model, item); | |
189 | } |
|
190 | } | |
|
191 | // Trigger an event when we've finished drawing the notebook list. | |||
|
192 | events.trigger('draw_notebook_list.NotebookList'); | |||
190 | }; |
|
193 | }; | |
191 |
|
194 | |||
192 |
|
195 | |||
@@ -380,6 +383,7 b' define([' | |||||
380 | var element = $(this); |
|
383 | var element = $(this); | |
381 | if (element.data("path") == path) { |
|
384 | if (element.data("path") == path) { | |
382 | element.remove(); |
|
385 | element.remove(); | |
|
386 | events.trigger('notebook_deleted.NotebookList'); | |||
383 | } |
|
387 | } | |
384 | }); |
|
388 | }); | |
385 | }; |
|
389 | }; |
General Comments 0
You need to be logged in to leave comments.
Login now