Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2015-09-15 16:40:42 +0300
committerRobin Appelman <icewind@owncloud.com>2015-09-15 16:40:42 +0300
commit8767c2b3bea95cb6020496536c124891be32243e (patch)
treea5873d70fc0d0ddcbd300a3b0cd32abd411a30f3 /apps/files/js/mainfileinfodetailview.js
parent72cfeaf157d28c72c61b4ff69a71119deebd5648 (diff)
fix small mimetype icons
Diffstat (limited to 'apps/files/js/mainfileinfodetailview.js')
-rw-r--r--apps/files/js/mainfileinfodetailview.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/files/js/mainfileinfodetailview.js b/apps/files/js/mainfileinfodetailview.js
index eb33ae0993f..830f074f3f1 100644
--- a/apps/files/js/mainfileinfodetailview.js
+++ b/apps/files/js/mainfileinfodetailview.js
@@ -124,9 +124,9 @@
// TODO: we really need OC.Previews
var $iconDiv = this.$el.find('.thumbnail');
- $iconDiv.addClass('icon-loading icon-32');
var $container = this.$el.find('.thumbnailContainer');
if (!this.model.isDirectory()) {
+ $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
@@ -173,7 +173,7 @@
if (!img) {
return;
}
- $iconDiv.removeClass('icon-loading icon-32');
+ $iconDiv.removeClass('icon-loading icon-32');
var targetHeight = getTargetHeight(img);
if (this.model.isImage() && targetHeight > smallPreviewSize) {
if (!isLandscape(img)) {
@@ -190,7 +190,7 @@
});
}.bind(this),
error: function () {
- $iconDiv.removeClass('icon-loading');
+ $iconDiv.removeClass('icon-loading icon-32');
this.$el.find('.thumbnailContainer').removeClass('image'); //fall back to regular view
$iconDiv.css({
'background-image': 'url("' + $iconDiv.previewImg + '")'