From 668c78278189fc0abd9148a73c83492224d68e6d Mon Sep 17 00:00:00 2001 From: Dan Helfman Date: Tue, 6 May 2008 20:27:10 +0000 Subject: [PATCH] Bug fix: flag a note as "show on startup". hide it. click the note's title on the left under "notes". the "show on startup" checkbox for that note is not checked, even though the note is a startup note. --- static/js/Wiki.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/static/js/Wiki.js b/static/js/Wiki.js index 5e88614..7b7b3a2 100644 --- a/static/js/Wiki.js +++ b/static/js/Wiki.js @@ -1263,6 +1263,12 @@ Wiki.prototype.save_editor = function ( editor, fire_and_forget, callback, synch self.update_editor_revisions( result, editor ); self.display_storage_usage( result.storage_bytes ); editor.mark_clean(); + + if ( editor.startup ) + self.startup_notes[ editor.id ] = true; + else if ( self.startup_notes[ editor.id ] ) + delete self.startup_notes[ editor.id ]; + if ( callback ) callback(); if ( !suppress_save_signal )