From 9be43e10af99bacf97a3ceea9051031ac62f6d6f Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Thu, 24 Dec 2015 08:59:32 +0100 Subject: [PATCH] Since the server no longer calculates the icon The server no longer calculates the icon. So we have the js side do it for us. --- core/js/oc-dialogs.js | 1 + 1 file changed, 1 insertion(+) diff --git a/core/js/oc-dialogs.js b/core/js/oc-dialogs.js index fe93d0ea65..b77063a9ea 100644 --- a/core/js/oc-dialogs.js +++ b/core/js/oc-dialogs.js @@ -753,6 +753,7 @@ var OCdialogs = { var sorted = dirs.concat(others); $.each(sorted, function(idx, entry) { + entry.icon = OC.MimeType.getIconUrl(entry.mimetype); var $li = self.$listTmpl.octemplate({ type: entry.type, dir: dir,