Fixed broken deletion undo.
This commit is contained in:
parent
d1b8a2201b
commit
094323ee58
|
@ -192,16 +192,16 @@ Wiki.prototype.load_editor = function ( note_title, from_iframe_id, note_id, rev
|
||||||
else
|
else
|
||||||
pulldown.title_field.value = note_title;
|
pulldown.title_field.value = note_title;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// if the title looks like a URL, then make it a link to an external site
|
// if the title looks like a URL, then make it a link to an external site
|
||||||
if ( /^\w+:\/\//.test( note_title ) ) {
|
if ( /^\w+:\/\//.test( note_title ) ) {
|
||||||
link.target = "_new";
|
link.target = "_new";
|
||||||
link.href = note_title;
|
link.href = note_title;
|
||||||
window.open( link.href );
|
window.open( link.href );
|
||||||
return
|
return
|
||||||
|
}
|
||||||
|
link.removeAttribute( "target" );
|
||||||
}
|
}
|
||||||
link.removeAttribute( "target" );
|
|
||||||
|
|
||||||
// if the note corresponding to the link's id is already open, highlight it and bail, but only if
|
// if the note corresponding to the link's id is already open, highlight it and bail, but only if
|
||||||
// we didn't pull a title from an open link pulldown
|
// we didn't pull a title from an open link pulldown
|
||||||
|
|
Reference in New Issue