add: return; }  if ( title == "share this notebook" ) { this.title_field.value = title; this.display_summary( title, "share this notebook with others" ); 
context: function Link_pulldown( wiki, notebook_id, invoker, editor, link ) {  link.pulldown = this;  this.link = link;  Pulldown.call( this, wiki, notebook_id, "link_" + editor.id, link, editor.iframe );  this.invoker = invoker;  this.editor = editor;  this.title_field = createDOM( "input", { "class": "text_field", "size": "30", "maxlength": "256" } );  this.note_summary = createDOM( "span", {} );  this.previous_title = "";  var self = this;  connect( this.title_field, "onclick", function ( event ) { self.title_field_clicked( event ); } );  connect( this.title_field, "onfocus", function ( event ) { self.title_field_focused( event ); } );  connect( this.title_field, "onchange", function ( event ) { self.title_field_changed( event ); } );  connect( this.title_field, "onblur", function ( event ) { self.title_field_changed( event ); } );  connect( this.title_field, "onkeydown", function ( event ) { self.title_field_key_pressed( event ); } );  appendChildNodes( this.div, createDOM( "span", { "class": "field_label" }, "links to: " ) );  appendChildNodes( this.div, this.title_field );  appendChildNodes( this.div, this.note_summary );  // links with targets are considered links to external sites  if ( link.target ) {    this.title_field.value = link.href;    replaceChildNodes( this.note_summary, "web link" );    return;  }  var query = parse_query( link );  var title = link_title( link, query );  var id = query.note_id;  // if the note has no destination note id set, try loading the note from the server by title  if ( ( id == undefined || id == "new" || id == "null" ) && title.length > 0 ) {    if ( title == "all notes" ) {      this.title_field.value = title;      this.display_summary( title, "list of all notes in this notebook" );      return;    }    if ( title == "search results" ) {      this.title_field.value = title;      this.display_summary( title, "current search results" );      return;    }    this.invoker.invoke(      "/notebooks/load_note_by_title", "GET", {        "notebook_id": this.notebook_id,        "note_title": title,        "summarize": true      },      function ( result ) {        // if the user has already started typing something, don't overwrite it        if ( self.title_field.value.length != 0 )          return;        if ( result.note ) {          self.title_field.value = result.note.title;          self.display_summary( result.note.title, result.note.summary );        } else {          self.title_field.value = title;          replaceChildNodes( self.note_summary, "empty note" );        }      }    );    return;  }  // if this link has an actual destination note id set, then see if that note is already open. if  // so, display its title and a summary of its contents  var iframe = getElement( "note_" + id );  if ( iframe ) {    this.title_field.value = iframe.editor.title;    this.display_summary( iframe.editor.title, iframe.editor.summarize() );    return;  }  // otherwise, load the destination note from the server, displaying its title and a summary of  // its contents  this.invoker.invoke(    "/notebooks/load_note", "GET", {      "notebook_id": this.notebook_id,      "note_id": id,      "summarize": true    },    function ( result ) {      // if the user has already started typing something, don't overwrite it      if ( self.title_field.value.length != 0 )        return;      if ( result.note ) {        self.title_field.value = result.note.title;        self.display_summary( result.note.title, result.note.summary );      } else {        self.title_field.value = title;        replaceChildNodes( self.note_summary, "empty note" );      }    }  );}
meta: 4711	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/4711/5554b1df179ccdbced8dda4bfb06d685c9f5beb6/Wiki.js/clean/static/js/Wiki.js