use data-file to retrieve filename

forward port of https://github.com/owncloud/core/pull/5647#discussion-diff-7341163
trust me, I know what I'm doing
This commit is contained in:
Jörn Friedrich Dreyer 2013-10-31 14:31:57 +01:00
parent ea4dfa7e38
commit a4be1ebeb8

View file

@ -487,7 +487,7 @@ var folderDropOptions={
return false;
}
var target = $.trim($(this).find('.nametext').text());
var target = $(this).parent('tr').data('file');
var files = ui.helper.find('tr');
$(files).each(function(i,row) {