]> source.dussan.org Git - nextcloud-server.git/commitdiff
Since the server no longer calculates the icon
authorRoeland Jago Douma <rullzer@owncloud.com>
Thu, 24 Dec 2015 07:59:32 +0000 (08:59 +0100)
committerRoeland Jago Douma <rullzer@owncloud.com>
Thu, 24 Dec 2015 07:59:32 +0000 (08:59 +0100)
The server no longer calculates the icon. So we have the js side do it
for us.

core/js/oc-dialogs.js

index fe93d0ea65701d09c6e5579c72e1faabd00df027..b77063a9eae9072cfc3300986f7ef94c36aefff7 100644 (file)
@@ -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,