From d5e4ce54ef435286ea0b9b75ae2299142629ec56 2014-01-07 22:42:36 From: Brian E. Granger Date: 2014-01-07 22:42:36 Subject: [PATCH] Changing a heading cell level should enter edit mode and set dirty --- diff --git a/IPython/html/static/notebook/js/notebook.js b/IPython/html/static/notebook/js/notebook.js index 6861c40..5ef8f69 100644 --- a/IPython/html/static/notebook/js/notebook.js +++ b/IPython/html/static/notebook/js/notebook.js @@ -888,9 +888,9 @@ var IPython = (function (IPython) { target_cell.code_mirror.clearHistory(); source_element.remove(); this.select(i); - this.edit_mode(); - this.set_dirty(true); }; + this.edit_mode(); + this.set_dirty(true); $([IPython.events]).trigger('selected_cell_type_changed.Notebook', {'cell_type':'heading',level:level} );