summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2013-10-28 15:41:52 +0100
committerVincent Petry <pvince81@owncloud.com>2013-10-28 15:41:52 +0100
commitefbd79198b3fed8480566c81397f530dea7e7b5c (patch)
treec2ca9f713957ff3a1fcf9e00953f23b353ab23c0
parente62ca4ea4fc235d7ec767034a80889b2fa331e97 (diff)
downloadnextcloud-server-efbd79198b3fed8480566c81397f530dea7e7b5c.tar.gz
nextcloud-server-efbd79198b3fed8480566c81397f530dea7e7b5c.zip
Fixed preview URL + size while dragging an existing file
-rw-r--r--apps/files/css/files.css3
-rw-r--r--apps/files/js/files.js5
2 files changed, 5 insertions, 3 deletions
diff --git a/apps/files/css/files.css b/apps/files/css/files.css
index af8597192f3..b9bf8cb87c1 100644
--- a/apps/files/css/files.css
+++ b/apps/files/css/files.css
@@ -320,8 +320,9 @@ table.dragshadow {
width:auto;
}
table.dragshadow td.filename {
- padding-left:36px;
+ padding-left:60px;
padding-right:16px;
+ height: 36px;
}
table.dragshadow td.size {
padding-right:8px;
diff --git a/apps/files/js/files.js b/apps/files/js/files.js
index ee0fdcb43a9..c0acfb4fc2b 100644
--- a/apps/files/js/files.js
+++ b/apps/files/js/files.js
@@ -480,7 +480,7 @@ var createDragShadow = function(event) {
//options for file drag/drop
var dragOptions={
revert: 'invalid', revertDuration: 300,
- opacity: 0.7, zIndex: 100, appendTo: 'body', cursorAt: { left: -5, top: -5 },
+ opacity: 0.7, zIndex: 100, appendTo: 'body', cursorAt: { left: 24, top: 18 },
helper: createDragShadow, cursor: 'move',
stop: function(event, ui) {
$('#fileList tr td.filename').addClass('ui-draggable');
@@ -626,7 +626,8 @@ function getSelectedFilesTrash(property) {
name:$(element).attr('data-file'),
mime:$(element).data('mime'),
type:$(element).data('type'),
- size:$(element).data('size')
+ size:$(element).data('size'),
+ etag:$(element).data('etag')
};
if (property) {
files.push(file[property]);