witten
/
luminotes
Archived
1
0
Fork 0

Bugfix that prevented undo from working.

This commit is contained in:
Dan Helfman 2007-08-16 19:55:11 +00:00
parent 3424e6ad12
commit a849935b1d
1 changed files with 10 additions and 8 deletions

View File

@ -177,14 +177,16 @@ Wiki.prototype.create_blank_editor = function ( event ) {
Wiki.prototype.load_editor = function ( note_title, from_iframe_id, note_id, revision, link ) {
// if a link is given with an open link pulldown, then ignore the note title given and use the
// one from the pulldown instead
var pulldown = link.pulldown;
var pulldown_title = undefined;
if ( pulldown ) {
pulldown_title = strip( pulldown.title_field.value );
if ( pulldown_title )
note_title = pulldown_title;
else
pulldown.title_field.value = note_title;
if ( link ) {
var pulldown = link.pulldown;
var pulldown_title = undefined;
if ( pulldown ) {
pulldown_title = strip( pulldown.title_field.value );
if ( pulldown_title )
note_title = pulldown_title;
else
pulldown.title_field.value = note_title;
}
}
// if the note corresponding to the link's id is already open, highlight it and bail, but only if