From 0b978c4f01fd44e9c8394c8d86edd24f37b3faec Mon Sep 17 00:00:00 2001 From: Dan Helfman Date: Thu, 12 Feb 2009 03:25:18 -0800 Subject: [PATCH] Fixed a bug in which moving a note and then clicking the "changes" tab on any other note failed to show that note's previous revisions. --- NEWS | 2 ++ static/js/Wiki.js | 5 ++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/NEWS b/NEWS index 3dbe485..a528da6 100644 --- a/NEWS +++ b/NEWS @@ -6,6 +6,8 @@ * Fixed a bug in which clicking on an unfocused note didn't position the text cursor in the correct location. * Fixed bugs related to the display and hiding of previous note revisions. + * Fixed a bug in which moving a note and then clicking the "changes" tab on + any other note failed to show that note's previous revisions. 1.6.3: February 11, 2009 * Introduced cache-busting code to make pages update more reliably after a diff --git a/static/js/Wiki.js b/static/js/Wiki.js index 180db1f..8c985d3 100644 --- a/static/js/Wiki.js +++ b/static/js/Wiki.js @@ -3049,9 +3049,8 @@ Wiki.prototype.toggle_editor_changes = function ( event, editor ) { event.stop(); - // if there's already a cached revision list, or the editor doesn't have a revision yet, then - // display the changes pulldown and bail - if ( ( editor.user_revisions && editor.user_revisions.length > 0 ) || !editor.revision ) { + // if there's already a cached revision list, then display the changes pulldown and bail + if ( ( editor.user_revisions && editor.user_revisions.length > 0 ) ) { new Changes_pulldown( this, this.notebook.object_id, this.invoker, editor ); return; }