From 5202629be030360b4116cda506ea99961e41dd18 Mon Sep 17 00:00:00 2001 From: Dan Helfman Date: Tue, 15 Apr 2008 20:22:06 +0000 Subject: [PATCH] Now clearing messages/pulldowns upon undeletion of a note. --- static/js/Wiki.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/static/js/Wiki.js b/static/js/Wiki.js index 692a816..d97d1f4 100644 --- a/static/js/Wiki.js +++ b/static/js/Wiki.js @@ -1176,7 +1176,11 @@ Wiki.prototype.undelete_editor_via_undo = function( event, editor, position_afte this.invoker.invoke( "/notebooks/undelete_note", "POST", { "notebook_id": this.notebook_id, "note_id": editor.id - }, function ( result ) { self.display_storage_usage( result.storage_bytes ); } ); + }, function ( result ) { + self.display_storage_usage( result.storage_bytes ); + self.clear_messages(); + self.clear_pulldowns(); + } ); } this.startup_notes[ editor.id ] = true; @@ -1193,7 +1197,11 @@ Wiki.prototype.undelete_editor_via_undelete = function( event, note_id, position this.invoker.invoke( "/notebooks/undelete_note", "POST", { "notebook_id": this.notebook_id, "note_id": note_id - }, function ( result ) { self.display_storage_usage( result.storage_bytes ); } ); + }, function ( result ) { + self.display_storage_usage( result.storage_bytes ); + self.clear_messages(); + self.clear_pulldowns(); + } ); } this.startup_notes[ note_id ] = true;