[Pkg-owncloud-commits] [owncloud] 184/457: Get a 96x96 preview for file conflict resolution
David Prévot
taffit at moszumanska.debian.org
Sun Jun 28 20:06:01 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 4e364311f1a07e2359eff2a4412ac90140059076
Author: Olivier Paroz <oparoz at users.noreply.github.com>
Date: Fri May 29 13:49:51 2015 +0200
Get a 96x96 preview for file conflict resolution
---
core/js/oc-dialogs.js | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
diff --git a/core/js/oc-dialogs.js b/core/js/oc-dialogs.js
index 0692a9d..b1ad72d 100644
--- a/core/js/oc-dialogs.js
+++ b/core/js/oc-dialogs.js
@@ -381,9 +381,15 @@ var OCdialogs = {
$replacementDiv.find('.mtime').text(formatDate(replacement.lastModifiedDate));
}
var path = original.directory + '/' +original.name;
- Files.lazyLoadPreview(path, original.mimetype, function(previewpath){
- $originalDiv.find('.icon').css('background-image','url('+previewpath+')');
- }, 96, 96, original.etag);
+ var urlSpec = {
+ file: path,
+ x: 96,
+ y: 96,
+ c: original.etag,
+ forceIcon: 0
+ };
+ var previewpath = OC.generateUrl('/core/preview.png?') + $.param(urlSpec);
+ $originalDiv.find('.icon').css('background-image','url('+previewpath+')');
getCroppedPreview(replacement).then(
function(path){
$replacementDiv.find('.icon').css('background-image','url(' + path + ')');
--
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