diff options
author | Vincent Petry <pvince81@owncloud.com> | 2015-10-28 17:43:36 +0100 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2015-10-29 12:59:51 +0100 |
commit | 9c9158e6b78c69835cb7280810819fb2cd6f84f7 (patch) | |
tree | 8045f5e8fb80aa377c68d7ba7f0ac498b2475c72 /apps/files/js/mainfileinfodetailview.js | |
parent | 92e63a802c9324ccfcd716bb0461f5b7cc153549 (diff) | |
download | nextcloud-server-9c9158e6b78c69835cb7280810819fb2cd6f84f7.tar.gz nextcloud-server-9c9158e6b78c69835cb7280810819fb2cd6f84f7.zip |
Fix icon update to be more consistent
Makes the details bar show the same icon as in the list.
Diffstat (limited to 'apps/files/js/mainfileinfodetailview.js')
-rw-r--r-- | apps/files/js/mainfileinfodetailview.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files/js/mainfileinfodetailview.js b/apps/files/js/mainfileinfodetailview.js index abf7da52ff4..69c796e492f 100644 --- a/apps/files/js/mainfileinfodetailview.js +++ b/apps/files/js/mainfileinfodetailview.js @@ -128,8 +128,8 @@ $iconDiv.addClass('icon-loading icon-32'); this.loadPreview(this.model.getFullPath(), this.model.get('mimetype'), this.model.get('etag'), $iconDiv, $container, this.model.isImage()); } else { - // TODO: special icons / shared / external - $iconDiv.css('background-image', 'url("' + OC.MimeType.getIconUrl('dir') + '")'); + var iconUrl = this.model.get('icon') || OC.MimeType.getIconUrl('dir'); + $iconDiv.css('background-image', 'url("' + iconUrl + '")'); OC.Util.scaleFixForIE8($iconDiv); } this.$el.find('[title]').tooltip({placement: 'bottom'}); |