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:
parent
2fd9514a04
commit
17cf1bf9a6
|
@ -1708,6 +1708,7 @@ Wiki.prototype.delete_all_editors = function ( event ) {
|
||||||
}
|
}
|
||||||
|
|
||||||
this.zero_total_notes_count();
|
this.zero_total_notes_count();
|
||||||
|
removeElement( "note_tree_root_table" );
|
||||||
this.display_empty_message( true );
|
this.display_empty_message( true );
|
||||||
|
|
||||||
event.stop();
|
event.stop();
|
||||||
|
|
|
@ -22,7 +22,7 @@ class Note_tree_area( Div ):
|
||||||
title = note.title,
|
title = note.title,
|
||||||
link_attributes = u'href="/notebooks/%s?note_id=%s"' % ( notebook.object_id, note.object_id ),
|
link_attributes = u'href="/notebooks/%s?note_id=%s"' % ( notebook.object_id, note.object_id ),
|
||||||
link_class = u"note_tree_link",
|
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,
|
root_note_id = note.object_id,
|
||||||
) for note in root_notes ],
|
) for note in root_notes ],
|
||||||
tree_id = "note_tree_root_table",
|
tree_id = "note_tree_root_table",
|
||||||
|
|
Reference in New Issue