Index: chrome/browser/resources/file_manager/js/file_manager.js |
=================================================================== |
--- chrome/browser/resources/file_manager/js/file_manager.js (revision 97846) |
+++ chrome/browser/resources/file_manager/js/file_manager.js (working copy) |
@@ -1679,9 +1679,19 @@ |
FileManager.prototype.maybeRenderUnmountTask_ = function(selection) { |
for (var index = 0; index < selection.urls.length; ++index) { |
// Each url should be a mount point. |
- var path = selection.urls[index]; |
- if (!this.mountPoints_.hasOwnProperty(path) || |
- this.mountPoints_[path].type != 'file') |
+ var path = selection.entries[index].fullPath; |
+ var found = false; |
+ for (var i = 0; i < this.mountPoints_.length; i++) { |
+ var mountPath = this.mountPoints_[i].mountPath; |
+ if (mountPath[0] != '/') { |
rginda
2011/08/23 21:09:03
FYI, in http://codereview.chromium.org/7706028/ Sz
|
+ mountPath = '/' + mountPath; |
+ } |
+ if (mountPath == path && this.mountPoints_[i].mountType == 'file') { |
+ found = true; |
+ break; |
+ } |
+ } |
+ if (!found) |
return; |
} |
this.renderTaskButton_({ |