Fix #5349, no themed icon when dragging folder

Signed-off-by: Patrik Kernstock <info@pkern.at>
This commit is contained in:
Patrik Kernstock 2017-06-13 17:11:05 +02:00
parent 72ccab0ab6
commit 144fc1b5de

View file

@ -363,7 +363,7 @@ var createDragShadow = function(event) {
tbody.append(newtr);
if (elem.type === 'dir') {
newtr.find('td.filename')
.css('background-image', 'url(' + OC.imagePath('core', 'filetypes/folder.svg') + ')');
.css('background-image', 'url(' + OC.MimeType.getIconUrl('folder') + ')');
} else {
var path = dir + '/' + elem.name;
Files.lazyLoadPreview(path, elem.mimetype, function(previewpath) {