From fad6abacbd1be04998c94d43714b100ccc4dc273 Mon Sep 17 00:00:00 2001 From: Dan Helfman Date: Mon, 14 Apr 2008 20:28:42 +0000 Subject: [PATCH] Now when you toggle the "show on startup" flag, the note's link is appropriately added to or removed from the note tree. --- static/js/Wiki.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/static/js/Wiki.js b/static/js/Wiki.js index 6c6c892..2858130 100644 --- a/static/js/Wiki.js +++ b/static/js/Wiki.js @@ -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 );