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:
parent
43d6650d19
commit
f3d421d24b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue