From 17cf1bf9a62561610154156bc37d7ffa5291b893 Mon Sep 17 00:00:00 2001 From: Dan Helfman Date: Mon, 14 Apr 2008 20:18:32 +0000 Subject: [PATCH] Made note tree expander arrows not show while in the trash. When emptying the trash, the note tree table is cleared. --- static/js/Wiki.js | 1 + view/Note_tree_area.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/static/js/Wiki.js b/static/js/Wiki.js index 08cde41..6c6c892 100644 --- a/static/js/Wiki.js +++ b/static/js/Wiki.js @@ -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(); diff --git a/view/Note_tree_area.py b/view/Note_tree_area.py index c78a1bc..ec58043 100644 --- a/view/Note_tree_area.py +++ b/view/Note_tree_area.py @@ -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",