mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-06-09 04:19:43 +00:00
(js) Fix retrieval of proper part in image gallery
This commit is contained in:
@@ -78,7 +78,7 @@
|
||||
ImageGallery.prototype.showGallery = function($event, partIndex) {
|
||||
var _this = this,
|
||||
$mdPanel = ImageGallery.$mdPanel,
|
||||
partSrc = angular.element(this.message.parts.content[partIndex].content).find('img')[0].src;
|
||||
partSrc = angular.element(this.message.$content()[partIndex].content).find('img')[0].src;
|
||||
|
||||
var images = _.filter(this.message.attachmentAttrs, function(attrs) {
|
||||
return attrs.mimetype.indexOf('image/') === 0;
|
||||
|
||||
Reference in New Issue
Block a user