witten
/
luminotes
Archived
1
0
Fork 0

Now when you toggle the "show on startup" flag, the note's link is appropriately added to or removed from the note tree.

This commit is contained in:
Dan Helfman 2008-04-14 20:28:42 +00:00
parent 17cf1bf9a6
commit fad6abacbd
1 changed files with 3 additions and 1 deletions

View File

@ -2653,8 +2653,10 @@ Note_tree.prototype.rename_link = function ( editor, new_title ) {
Note_tree.prototype.update_link = function ( editor ) {
var link = getElement( "note_tree_link_" + editor.id );
if ( !link )
if ( !link ) {
this.add_root_link( editor );
return;
}
if ( !editor.startup )
this.remove_link( editor.id );