witten
/
luminotes
Archived
1
0
Fork 0

Fixed editor_by_id() function to work correctly when a revision is given and a static div editor is returned.

This commit is contained in:
Dan Helfman 2009-01-13 12:20:36 -08:00
parent 53bff5980d
commit ab3e04538c
1 changed files with 5 additions and 1 deletions

View File

@ -1131,8 +1131,12 @@ function editor_by_id( note_id, revision ) {
var div = getElement( "static_note_" + note_id );
if ( div )
if ( div ) {
if ( revision && div.editor && div.editor.revision != revision )
return null;
return div.editor;
}
return null;
}