diff --git a/static/js/Editor.js b/static/js/Editor.js index 25b6cd9..49ab6b6 100644 --- a/static/js/Editor.js +++ b/static/js/Editor.js @@ -64,7 +64,7 @@ function Editor( id, notebook_id, note_text, deleted_from, revisions_list, read_ } } - if ( read_write || !startup ) { + if ( !this.deleted_from && ( read_write || !startup ) ) { this.hide_button = createDOM( "input", { "type": "button", "class": "note_button", diff --git a/static/js/Wiki.js b/static/js/Wiki.js index e983f39..027802d 100644 --- a/static/js/Wiki.js +++ b/static/js/Wiki.js @@ -541,7 +541,8 @@ Wiki.prototype.editor_key_pressed = function ( editor, event ) { this.create_blank_editor( event ); // ctrl-h: hide note } else if ( code == 72 ) { - this.hide_editor( event ); + if ( !editor.deleted_from ) + this.hide_editor( event ); // ctrl-d: delete note } else if ( code == 68 ) { this.delete_editor( event );