Always close the Actor after dispatching the action.
authorRobert Sesek <rsesek@bluestatic.org>
Mon, 4 Oct 2010 13:33:12 +0000 (09:33 -0400)
committerRobert Sesek <rsesek@bluestatic.org>
Mon, 4 Oct 2010 13:33:12 +0000 (09:33 -0400)
web_frontend/actor.js

index ba6cfa30e2108fa2b00bf70c9397c73f6322557a..8517031a6f66ab22c65b9c6b4a7998eb05dcf1b9 100644 (file)
@@ -154,13 +154,13 @@ armadillo.Actor.prototype.tileClickHandler_ = function(e) {
   if (option == armadillo.Actor.options_.OPEN) {
     // TODO: assert that this.file_.isDirectory().
     app.navigate(this.file_.getName());
-    this.hide();
   } else if (option == armadillo.Actor.options_.MOVE ||
              option == armadillo.Actor.options_.RENAME) {
     this.performMove_();
   } else if (option == armadillo.Actor.options_.DELETE) {
     this.performDelete_();
   }
+  this.hide();
 };
 
 /**