witten
/
luminotes
Archived
1
0
Fork 0

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.
This commit is contained in:
Dan Helfman 2007-08-11 21:49:33 +00:00
parent d5345304cc
commit ec9cd1066c
1 changed files with 1 additions and 8 deletions

View File

@ -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;