witten
/
luminotes
Archived
1
0
Fork 0

No hide button while in the trash.

This commit is contained in:
Dan Helfman 2007-09-05 18:57:50 +00:00
parent ad7c6aca7f
commit b6204179c9
2 changed files with 3 additions and 2 deletions

View File

@ -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",

View File

@ -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 );