From: Patrik Kernstock Date: Tue, 13 Jun 2017 15:11:05 +0000 (+0200) Subject: Fix #5349, no themed icon when dragging folder X-Git-Tag: v12.0.1RC1~85^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a292a4b7789b96b7eefe2bb30646d8337b0e4e4d;p=nextcloud-server.git Fix #5349, no themed icon when dragging folder Signed-off-by: Patrik Kernstock --- diff --git a/apps/files/js/files.js b/apps/files/js/files.js index a30194013e5..cdc2e27a612 100644 --- a/apps/files/js/files.js +++ b/apps/files/js/files.js @@ -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) {