From 76c7950aff486150f532b91abb458a774e1bb284 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sat, 9 Oct 2010 17:37:37 -0400 Subject: [PATCH] Disable the highlight mechanism after fixing the behavior in File.onPopupClosed_(). --- web_frontend/actor.js | 1 + web_frontend/file.js | 2 ++ web_frontend/screen.css | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/web_frontend/actor.js b/web_frontend/actor.js index 83bc8d5..63e27b7 100644 --- a/web_frontend/actor.js +++ b/web_frontend/actor.js @@ -147,6 +147,7 @@ armadillo.Actor.prototype.show = function(x, y) { * Hides the popup. */ armadillo.Actor.prototype.hide = function() { + this.file_.setHighlight(armadillo.File.Highlight.SELECTED); this.popup_.setVisible(false); }; diff --git a/web_frontend/file.js b/web_frontend/file.js index 60fa57b..438534e 100644 --- a/web_frontend/file.js +++ b/web_frontend/file.js @@ -84,7 +84,9 @@ armadillo.File.prototype.isDirectory = function() { * Sets the highlight state. */ armadillo.File.prototype.setHighlight = function(h) { + return; // TODO: enable. goog.dom.classes.addRemove(this.element_, this.highlight_, h); + this.highlight_ = h; }; /** diff --git a/web_frontend/screen.css b/web_frontend/screen.css index c92f40f..7f40b80 100644 --- a/web_frontend/screen.css +++ b/web_frontend/screen.css @@ -46,7 +46,7 @@ h1 { } #ls li.file-selected { - background-color: green; + background-color: rgb(255, 208, 164); } #ls li.file-active { -- 2.43.5