Fix drag and drop in IE8

For some reason IE8 didn't like the sort function, so using the one from
underscore instead.
This commit is contained in:
Vincent Petry 2014-05-16 11:25:36 +02:00
parent 43d6650d19
commit f3d421d24b
1 changed files with 1 additions and 1 deletions

View File

@ -311,7 +311,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);
selectedFiles = _.sortBy(selectedFiles, FileList._fileInfoCompare);
if (!isDragSelected && selectedFiles.length === 1) {
//revert the selection