witten
/
luminotes
Archived
1
0
Fork 0

Don't create duplicate "all notes" when opened from a note link.

This commit is contained in:
Dan Helfman 2007-09-05 23:44:34 +00:00
parent 5aaf0d6276
commit f7b97fb41d
1 changed files with 6 additions and 0 deletions

View File

@ -286,6 +286,12 @@ Wiki.prototype.load_editor = function ( note_title, note_id, revision, link ) {
// if the note_title corresponds to a "magic" note's title, then dynamically create the note
var self = this;
if ( note_title == "all notes" ) {
var editor = this.open_editors[ note_title ];
if ( editor ) {
editor.highlight();
return;
}
this.invoker.invoke(
"/notebooks/all_notes", "GET", { "notebook_id": this.notebook.object_id },
function( result ) { self.display_all_notes_list( result ); }