From ea4ad4c6834790dd5650c6aab2babed4da993686 Mon Sep 17 00:00:00 2001 From: Dan Helfman Date: Tue, 15 Apr 2008 20:59:27 +0000 Subject: [PATCH] Bug fix: If you opened the link info box on a link to a deleted note, and then clicked that link, it wouldn't give you a message about the link being in the trash but would instead just open an empty version of that note. --- static/js/Wiki.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/static/js/Wiki.js b/static/js/Wiki.js index d97d1f4..b8b1e10 100644 --- a/static/js/Wiki.js +++ b/static/js/Wiki.js @@ -408,6 +408,10 @@ Wiki.prototype.load_editor = function ( note_title, note_id, revision, link, pos pulldown_title = strip( pulldown.title_field.value ); if ( pulldown_title ) note_title = pulldown_title; + + // only use the pulldown title if it has changed from the note's original title + if ( pulldown_title == note_title ) + pulldown_title = undefined; } if ( link.target )