No hide button while in the trash.
This commit is contained in:
parent
ad7c6aca7f
commit
b6204179c9
|
@ -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", {
|
this.hide_button = createDOM( "input", {
|
||||||
"type": "button",
|
"type": "button",
|
||||||
"class": "note_button",
|
"class": "note_button",
|
||||||
|
|
|
@ -541,7 +541,8 @@ Wiki.prototype.editor_key_pressed = function ( editor, event ) {
|
||||||
this.create_blank_editor( event );
|
this.create_blank_editor( event );
|
||||||
// ctrl-h: hide note
|
// ctrl-h: hide note
|
||||||
} else if ( code == 72 ) {
|
} else if ( code == 72 ) {
|
||||||
this.hide_editor( event );
|
if ( !editor.deleted_from )
|
||||||
|
this.hide_editor( event );
|
||||||
// ctrl-d: delete note
|
// ctrl-d: delete note
|
||||||
} else if ( code == 68 ) {
|
} else if ( code == 68 ) {
|
||||||
this.delete_editor( event );
|
this.delete_editor( event );
|
||||||
|
|
Reference in New Issue