From 911137b1128868e0394291955ede10b53458a329 Mon Sep 17 00:00:00 2001 From: Dan Helfman Date: Wed, 12 Mar 2008 01:06:50 +0000 Subject: [PATCH] The "all notes" note now actually hides when the "hide" button is clicked and doesn't just reappear. --- 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 40893d7..9b9c3ed 100644 --- a/static/js/Wiki.js +++ b/static/js/Wiki.js @@ -1053,6 +1053,8 @@ Wiki.prototype.hide_editor = function ( event, editor ) { } if ( editor ) { + var id = editor.id; + // if the editor to hide is completely empty, then simply remove it if ( editor.id == this.blank_editor_id && editor.empty() ) { this.remove_all_notes_link( editor.id ); @@ -1067,7 +1069,7 @@ Wiki.prototype.hide_editor = function ( event, editor ) { Highlight( "all_notes_link" ); } - this.display_empty_message(); + this.display_empty_message( id == "all_notes" ); } event.stop();