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

Unified Diff: chrome/browser/resources/file_manager/foreground/js/photo/gallery.js

Issue 135973012: [Galley] Fix an exception in clicking a thumbnail (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed the comment Created 6 years, 10 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/foreground/js/photo/gallery.js
diff --git a/chrome/browser/resources/file_manager/foreground/js/photo/gallery.js b/chrome/browser/resources/file_manager/foreground/js/photo/gallery.js
index a95b9c71a11bdde76e2a49d4fd48f1f82f25ed77..489310a3993efe228f777e7127be35d2f747bd64 100644
--- a/chrome/browser/resources/file_manager/foreground/js/photo/gallery.js
+++ b/chrome/browser/resources/file_manager/foreground/js/photo/gallery.js
@@ -637,13 +637,12 @@ Gallery.prototype.onKeyDown_ = function(event) {
* @private
*/
Gallery.prototype.updateSelectionAndState_ = function() {
- var numSelectedItems = this.selectionModel_.length;
+ var numSelectedItems = this.selectionModel_.selectedIndexes.length;
var displayName = '';
var selectedEntryURL = null;
// If it's selecting something, update the variable values.
if (numSelectedItems) {
- var selectedIndex = this.selectionModel_.selectedIndex;
var selectedItem =
this.dataModel_.item(this.selectionModel_.selectedIndex);
this.selectedEntry_ = selectedItem.getEntry();
« 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