Merge pull request #306 from owncloud/crumb_drop_fix

extract the right file name for drag&drop.
This commit is contained in:
Björn Schießle 2012-11-07 05:46:18 -08:00
commit 7b51a4e5f9

View file

@ -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