From 7566379d14e6f66bdae1d856417161b362bff14b Mon Sep 17 00:00:00 2001 From: MinRK Date: Tue, 12 Feb 2013 10:47:06 -0800 Subject: [PATCH] add menu item for undo delete cell closes #2920 --- IPython/frontend/html/notebook/static/js/menubar.js | 3 +++ IPython/frontend/html/notebook/templates/notebook.html | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/IPython/frontend/html/notebook/static/js/menubar.js b/IPython/frontend/html/notebook/static/js/menubar.js index 0a584648a..470f92bf0 100644 --- a/IPython/frontend/html/notebook/static/js/menubar.js +++ b/IPython/frontend/html/notebook/static/js/menubar.js @@ -83,6 +83,9 @@ var IPython = (function (IPython) { this.element.find('#delete_cell').click(function () { IPython.notebook.delete_cell(); }); + this.element.find('#undelete_cell').click(function () { + IPython.notebook.undelete(); + }); this.element.find('#split_cell').click(function () { IPython.notebook.split_cell(); }); diff --git a/IPython/frontend/html/notebook/templates/notebook.html b/IPython/frontend/html/notebook/templates/notebook.html index 307c7c347..0b0e059b4 100644 --- a/IPython/frontend/html/notebook/templates/notebook.html +++ b/IPython/frontend/html/notebook/templates/notebook.html @@ -77,7 +77,8 @@ class="notebook_app"
  • Paste Cell Above
  • Paste Cell Below
  • Paste Cell & Replace
  • -
  • Delete
  • +
  • Delete Cell
  • +
  • Undo Delete Cell

  • Split Cell
  • Merge Cell Above