Fixed preview URL + size while dragging an existing file

This commit is contained in:
Vincent Petry 2013-10-28 15:41:52 +01:00
parent e62ca4ea4f
commit efbd79198b
2 changed files with 5 additions and 3 deletions

View File

@ -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;

View File

@ -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]);