From 4775d6df989f0de7e58929c8e960b108ce5f731a Mon Sep 17 00:00:00 2001 From: Dan Helfman Date: Fri, 14 Nov 2008 22:52:54 -0800 Subject: [PATCH] Removed the "changes" tab from your own notes in the discussion forums, since it didn't work there anyway due to a redirect. --- static/js/Editor.js | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/static/js/Editor.js b/static/js/Editor.js index 5a97fbf..c3ac3fd 100644 --- a/static/js/Editor.js +++ b/static/js/Editor.js @@ -56,7 +56,7 @@ function Editor( id, notebook_id, note_text, deleted_from_id, revision, read_wri "title": "undelete note" } ); connect( this.undelete_button, "onclick", function ( event ) { signal( self, "undelete_clicked", event ); } ); - } else { + } else if ( !own_notes_only ) { this.changes_button = createDOM( "input", { "type": "button", "class": "note_button", @@ -66,16 +66,14 @@ function Editor( id, notebook_id, note_text, deleted_from_id, revision, read_wri } ); connect( this.changes_button, "onclick", function ( event ) { signal( self, "changes_clicked", event ); } ); - if ( !own_notes_only ) { - this.options_button = createDOM( "input", { - "type": "button", - "class": "note_button", - "id": "options_" + iframe_id, - "value": "options", - "title": "note options" - } ); - connect( this.options_button, "onclick", function ( event ) { signal( self, "options_clicked", event ); } ); - } + this.options_button = createDOM( "input", { + "type": "button", + "class": "note_button", + "id": "options_" + iframe_id, + "value": "options", + "title": "note options" + } ); + connect( this.options_button, "onclick", function ( event ) { signal( self, "options_clicked", event ); } ); } }