From c8e910b43aba7faa4b7b47b20502522901bf005f Mon Sep 17 00:00:00 2001 From: Dan Helfman Date: Mon, 8 Sep 2008 15:44:24 -0700 Subject: [PATCH] Made it clearer when reverting a note what's going on. Now opening the reverted note if it's not yet open, or highlighting it if it is open. --- static/js/Wiki.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/static/js/Wiki.js b/static/js/Wiki.js index 3c52034..ca83b59 100644 --- a/static/js/Wiki.js +++ b/static/js/Wiki.js @@ -1624,7 +1624,11 @@ Wiki.prototype.submit_form = function ( form ) { editor.scrape_title(); } + editor.highlight(); + signal( self, "note_saved", editor ); + } else { + self.load_editor( "Note not found.", form.note_id.value ); } self.display_storage_usage( result.storage_bytes );