From ab83f4de6a9b08c07dc3043439f9fbad7c248d9a Mon Sep 17 00:00:00 2001 From: Dan Helfman Date: Wed, 30 Apr 2008 02:51:56 +0000 Subject: [PATCH] Bug fix: Opening an old revision should not modify the recent updates list. --- static/js/Wiki.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/static/js/Wiki.js b/static/js/Wiki.js index cb76736..4676e0f 100644 --- a/static/js/Wiki.js +++ b/static/js/Wiki.js @@ -643,7 +643,8 @@ Wiki.prototype.parse_loaded_editor = function ( result, note_title, requested_re var self = this; var editor = this.create_editor( id, note_text, deleted_from_id, actual_revision, actual_creation, read_write, true, false, position_after ); - connect( editor, "init_complete", function () { signal( self, "note_added", editor ); } ); + if ( !requested_revision ) + connect( editor, "init_complete", function () { signal( self, "note_added", editor ); } ); id = editor.id; // if a link that launched this editor was provided, update it with the created note's id