From ec9cd1066cab74968f8e1d3f93c1238c127f8102 Mon Sep 17 00:00:00 2001 From: Dan Helfman Date: Sat, 11 Aug 2007 21:49:33 +0000 Subject: [PATCH] No longer moving any iframes when displaying search results that are already open, as that causes the iframe contents to revert to as they were when the iframe was loaded. --- static/js/Wiki.js | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/static/js/Wiki.js b/static/js/Wiki.js index 264d502..ea1791e 100644 --- a/static/js/Wiki.js +++ b/static/js/Wiki.js @@ -559,16 +559,9 @@ Wiki.prototype.display_loaded_notes = function ( result ) { for ( var i in result.notes ) { var note = result.notes[ i ] - // if the editor is already open, just move it down to be with the rest of the search results + // if the editor is already open, just skip it var iframe = getElement( "note_" + note.object_id ); if ( iframe ) { - // if this a startup note in a read-only notebook, don't move it - if ( !this.read_write && iframe.editor.startup ) - continue - removeElement( iframe.editor.note_controls ); - removeElement( iframe ); - appendChildNodes( "notes", iframe.editor.note_controls ); - appendChildNodes( "notes", iframe ); iframe.editor.highlight( focus ); focus = false; continue;