Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2618)

Unified Diff: chrome/browser/resources/file_manager/js/file_manager.js

Issue 10834087: In FileManager when clicking on the current root while viewing the top directory, do nothing (inste… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/file_manager/js/file_manager.js
diff --git a/chrome/browser/resources/file_manager/js/file_manager.js b/chrome/browser/resources/file_manager/js/file_manager.js
index 679274d15eeaf4e6261c36b5930d194ac1ce98c1..6657ff1ebd9ceec457dddec92e2cc08a9203966f 100644
--- a/chrome/browser/resources/file_manager/js/file_manager.js
+++ b/chrome/browser/resources/file_manager/js/file_manager.js
@@ -1894,7 +1894,7 @@ FileManager.prototype = {
li.className = 'root-item';
var dm = this.directoryModel_;
var handleClick = function() {
- if (li.selected) {
+ if (li.selected && path !== dm.getCurrentDirPath()) {
dm.changeDirectory(path);
}
};
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698