summaryrefslogtreecommitdiffstats
path: root/apps/files
diff options
context:
space:
mode:
authorBjörn Schießle <bjoern@schiessle.org>2012-11-07 05:46:18 -0800
committerBjörn Schießle <bjoern@schiessle.org>2012-11-07 05:46:18 -0800
commit7b51a4e5f9058200917e3e3109cb24c4a1f9e6f2 (patch)
treef3d7f89d72b2ffe3d31556be3de2e5b73fc7908e /apps/files
parent012a907a8ac4044f6f9e6472deb8cb401a1b5f60 (diff)
parent168a2c7b6b005feb0820b682809066dc6ddaab5f (diff)
downloadnextcloud-server-7b51a4e5f9058200917e3e3109cb24c4a1f9e6f2.tar.gz
nextcloud-server-7b51a4e5f9058200917e3e3109cb24c4a1f9e6f2.zip
Merge pull request #306 from owncloud/crumb_drop_fix
extract the right file name for drag&drop.
Diffstat (limited to 'apps/files')
-rw-r--r--apps/files/js/files.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/js/files.js b/apps/files/js/files.js
index 7506000d216..16f7c966067 100644
--- a/apps/files/js/files.js
+++ b/apps/files/js/files.js
@@ -722,7 +722,7 @@ var folderDropOptions={
}
var crumbDropOptions={
drop: function( event, ui ) {
- var file=ui.draggable.text().trim();
+ var file=ui.draggable.parent().data('file');
var target=$(this).data('dir');
var dir=$('#dir').val();
while(dir.substr(0,1)=='/'){//remove extra leading /'s