diff --git a/static/js/Wiki.js b/static/js/Wiki.js index c69c220..f435c5c 100644 --- a/static/js/Wiki.js +++ b/static/js/Wiki.js @@ -823,7 +823,7 @@ Wiki.prototype.create_editor = function ( id, note_text, deleted_from_id, revisi if ( creation ) { var note_id = id.split( ' ' )[ 0 ]; - note_text = this.make_byline( username, creation, note_id ) + note_text; + note_text = note_text + this.make_byline( username, creation, note_id ); } var startup = this.startup_notes[ id ]; @@ -1045,7 +1045,7 @@ Wiki.prototype.make_byline = function ( username, creation, note_id ) { else var timestamp = ''; - return '

Posted' + by + timestamp + + return '

Posted' + by + timestamp + ' | permalink'; } @@ -1074,7 +1074,7 @@ Wiki.prototype.key_pressed = function ( event ) { Wiki.prototype.editor_key_pressed = function ( editor, event ) { if ( editor.document && editor.read_write ) { - var byline = getFirstElementByTagAndClassName( "p", "byline", editor.document ); + var byline = getFirstElementByTagAndClassName( "div", "byline", editor.document ); if ( byline ) { removeElement( byline ); editor.resize();