witten
/
luminotes
Archived
1
0
Fork 0

Made note tree expander arrows not show while in the trash.

When emptying the trash, the note tree table is cleared.
This commit is contained in:
Dan Helfman 2008-04-14 20:18:32 +00:00
parent 2fd9514a04
commit 17cf1bf9a6
2 changed files with 2 additions and 1 deletions

View File

@ -1708,6 +1708,7 @@ Wiki.prototype.delete_all_editors = function ( event ) {
}
this.zero_total_notes_count();
removeElement( "note_tree_root_table" );
this.display_empty_message( true );
event.stop();

View File

@ -22,7 +22,7 @@ class Note_tree_area( Div ):
title = note.title,
link_attributes = u'href="/notebooks/%s?note_id=%s"' % ( notebook.object_id, note.object_id ),
link_class = u"note_tree_link",
has_children = self.LINK_PATTERN.search( note.contents ),
has_children = ( notebook.name != u"trash" ) and self.LINK_PATTERN.search( note.contents ) or False,
root_note_id = note.object_id,
) for note in root_notes ],
tree_id = "note_tree_root_table",