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:
authorGeorg Ehrke <developer@georgehrke.com>2015-09-11 19:15:36 +0300
committerGeorg Ehrke <developer@georgehrke.com>2015-09-11 19:15:36 +0300
commit4660fefd016499953b2e3ac93891a3c57041ed80 (patch)
treeec0206a6e54161340e19f0f704e7c6beb0d4bd85 /apps/files/js/mainfileinfodetailview.js
parent1924dd348a41bb52968f4fe598dd6f170536c724 (diff)
enforce loading icon in sidebar to be 32x32
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 785eed8d712..efdbb5e2ad1 100644
--- a/apps/files/js/mainfileinfodetailview.js
+++ b/apps/files/js/mainfileinfodetailview.js
@@ -124,7 +124,7 @@
// TODO: we really need OC.Previews
var $iconDiv = this.$el.find('.thumbnail');
- $iconDiv.addClass('icon-loading');
+ $iconDiv.addClass('icon-loading icon-32');
$container = this.$el.find('.thumbnailContainer');
if (!this.model.isDirectory()) {
this._fileList.lazyLoadPreview({
@@ -137,7 +137,7 @@
callback: function(previewUrl, img) {
$iconDiv.previewImg = previewUrl;
if (img) {
- $iconDiv.removeClass('icon-loading');
+ $iconDiv.removeClass('icon-loading icon-32');
if(img.height > img.width) {
$container.addClass('portrait');
}
@@ -163,7 +163,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 + '")'