mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-30 12:11:32 +08:00
Merge pull request #3559 from minrk/create_delete_events
add create.Cell and delete.Cell js events closes #3154
This commit is contained in:
commit
374579a65c
@ -742,6 +742,7 @@ var IPython = (function (IPython) {
|
||||
this.undelete_index = i;
|
||||
this.undelete_below = false;
|
||||
};
|
||||
$([IPython.events]).trigger('delete.Cell', {'cell': cell, 'index': i});
|
||||
this.set_dirty(true);
|
||||
};
|
||||
return this;
|
||||
@ -782,6 +783,7 @@ var IPython = (function (IPython) {
|
||||
if(this._insert_element_at_index(cell.element,index)){
|
||||
cell.render();
|
||||
this.select(this.find_cell_index(cell));
|
||||
$([IPython.events]).trigger('create.Cell', {'cell': cell, 'index': index});
|
||||
this.set_dirty(true);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user