[Pkg-owncloud-commits] [owncloud] 151/172: Fix drag and drop in IE8
David Prévot
taffit at moszumanska.debian.org
Sun May 18 20:09:52 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository owncloud.
commit f3d421d24bdffccbb9a90b3a4d712900f2c266d5
Author: Vincent Petry <pvince81 at owncloud.com>
Date: Fri May 16 11:25:36 2014 +0200
Fix drag and drop in IE8
For some reason IE8 didn't like the sort function, so using the one from
underscore instead.
---
apps/files/js/files.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/apps/files/js/files.js b/apps/files/js/files.js
index 6d16785..2373f6e 100644
--- a/apps/files/js/files.js
+++ b/apps/files/js/files.js
@@ -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
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list