##// END OF EJS Templates
add create.Cell and delete.Cell js events...
MinRK -
Show More
@@ -737,6 +737,7 b' var IPython = (function (IPython) {'
737 this.undelete_index = i;
737 this.undelete_index = i;
738 this.undelete_below = false;
738 this.undelete_below = false;
739 };
739 };
740 $([IPython.events]).trigger('delete.Cell', {'cell': cell, 'index': i});
740 this.set_dirty(true);
741 this.set_dirty(true);
741 };
742 };
742 return this;
743 return this;
@@ -777,6 +778,7 b' var IPython = (function (IPython) {'
777 if(this._insert_element_at_index(cell.element,index)){
778 if(this._insert_element_at_index(cell.element,index)){
778 cell.render();
779 cell.render();
779 this.select(this.find_cell_index(cell));
780 this.select(this.find_cell_index(cell));
781 $([IPython.events]).trigger('create.Cell', {'cell': cell, 'index': index});
780 this.set_dirty(true);
782 this.set_dirty(true);
781 }
783 }
782 }
784 }
General Comments 0
You need to be logged in to leave comments. Login now