[Pkg-owncloud-commits] [owncloud] 381/457: Truncate preview resolution
David Prévot
taffit at moszumanska.debian.org
Sun Jun 28 20:06:50 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch stable8
in repository owncloud.
commit d256425abadd4f1ab247d0e0efdca6319c527ca9
Author: Vincent Petry <pvince81 at owncloud.com>
Date: Thu Jun 11 17:17:40 2015 +0200
Truncate preview resolution
This prevents having float numbers appear in the URL
---
apps/files/js/filelist.js | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js
index e88ea1a..b6f464b 100644
--- a/apps/files/js/filelist.js
+++ b/apps/files/js/filelist.js
@@ -1173,8 +1173,10 @@
if (!urlSpec.y) {
urlSpec.y = this.$table.data('preview-y') || 36;
}
- urlSpec.y *= window.devicePixelRatio;
urlSpec.x *= window.devicePixelRatio;
+ urlSpec.y *= window.devicePixelRatio;
+ urlSpec.x = Math.floor(urlSpec.x);
+ urlSpec.y = Math.floor(urlSpec.y);
urlSpec.forceIcon = 0;
return OC.generateUrl('/core/preview.png?') + $.param(urlSpec);
},
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list