Chromium Code Reviews| Index: chrome/browser/resources/file_manager/foreground/js/photo/ribbon.js |
| diff --git a/chrome/browser/resources/file_manager/foreground/js/photo/ribbon.js b/chrome/browser/resources/file_manager/foreground/js/photo/ribbon.js |
| index 210c041898ac6cb8988533c5543289cab69d7644..0065e02772bcf126c5fa0005f6326cbb8fb6a1fd 100644 |
| --- a/chrome/browser/resources/file_manager/foreground/js/photo/ribbon.js |
| +++ b/chrome/browser/resources/file_manager/foreground/js/photo/ribbon.js |
| @@ -305,8 +305,10 @@ Ribbon.prototype.renderThumbnail_ = function(index) { |
| thumbnail.className = 'ribbon-image'; |
| thumbnail.addEventListener('click', function() { |
| var index = this.dataModel_.indexOf(item); |
| + this.selectionModel_.beginChange(); |
|
hirono
2014/02/13 04:57:07
I'm not sure why the pair of methods fix the excep
|
| this.selectionModel_.unselectAll(); |
| this.selectionModel_.setIndexSelected(index, true); |
| + this.selectionModel_.endChange(); |
| }.bind(this)); |
| util.createChild(thumbnail, 'image-wrapper'); |