diff --git a/IPython/html/static/notebook/js/codecell.js b/IPython/html/static/notebook/js/codecell.js index 7d06188..37931bc 100644 --- a/IPython/html/static/notebook/js/codecell.js +++ b/IPython/html/static/notebook/js/codecell.js @@ -338,6 +338,7 @@ define([ } CodeCell.msg_cells[this.last_msg_id] = this; this.render(); + this.events.trigger('execute.CodeCell'); }; /** diff --git a/IPython/html/static/tree/js/notebooklist.js b/IPython/html/static/tree/js/notebooklist.js index 0447e61..c1f6cfd 100644 --- a/IPython/html/static/tree/js/notebooklist.js +++ b/IPython/html/static/tree/js/notebooklist.js @@ -6,7 +6,8 @@ define([ 'jquery', 'base/js/utils', 'base/js/dialog', -], function(IPython, $, utils, dialog) { + 'base/js/events', +], function(IPython, $, utils, dialog, events) { "use strict"; var NotebookList = function (selector, options) { @@ -187,6 +188,8 @@ define([ item = this.new_item(i+offset); this.add_link(model, item); } + // Trigger an event when we've finished drawing the notebook list. + events.trigger('draw_notebook_list.NotebookList'); }; @@ -380,6 +383,7 @@ define([ var element = $(this); if (element.data("path") == path) { element.remove(); + events.trigger('notebook_deleted.NotebookList'); } }); };