summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2014-04-08 16:56:02 +0200
committerVincent Petry <pvince81@owncloud.com>2014-04-28 14:55:01 +0200
commit3159c2ee641e329c2fbaa5efbf9ac994795efa1d (patch)
tree900bd9152d32a8a09594d326870ebcb82ce1adb3
parentfd982df6aea09492e02cc65de02ee8250a1a229c (diff)
downloadnextcloud-server-3159c2ee641e329c2fbaa5efbf9ac994795efa1d.tar.gz
nextcloud-server-3159c2ee641e329c2fbaa5efbf9ac994795efa1d.zip
Fixed drag shadow file sorting
-rw-r--r--apps/files/js/files.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/files/js/files.js b/apps/files/js/files.js
index 41c762f0fa1..f4c99d1128c 100644
--- a/apps/files/js/files.js
+++ b/apps/files/js/files.js
@@ -318,6 +318,7 @@ var createDragShadow = function(event) {
// do not show drag shadow for too many files
var selectedFiles = _.first(FileList.getSelectedFiles(), FileList.pageSize);
+ selectedFiles.sort(FileList._fileInfoCompare);
if (!isDragSelected && selectedFiles.length === 1) {
//revert the selection