summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorkondou <kondou@ts.unde.re>2013-09-14 14:35:23 +0200
committerkondou <kondou@ts.unde.re>2013-09-14 14:35:23 +0200
commitc117e719daf84c087faa0e5913a6fd96668edfcf (patch)
treed31abf7575b3922b155317308915488bf0226d93 /core
parent556bd1ef23ca6176018a48e72f1e330269a69aab (diff)
downloadnextcloud-server-c117e719daf84c087faa0e5913a6fd96668edfcf.tar.gz
nextcloud-server-c117e719daf84c087faa0e5913a6fd96668edfcf.zip
Use external and shared icons in OC.Dialogs.filepicker()
Diffstat (limited to 'core')
-rw-r--r--core/js/oc-dialogs.js6
1 files changed, 1 insertions, 5 deletions
diff --git a/core/js/oc-dialogs.js b/core/js/oc-dialogs.js
index 61b58d00fa6..33e3a75fab6 100644
--- a/core/js/oc-dialogs.js
+++ b/core/js/oc-dialogs.js
@@ -292,11 +292,7 @@ var OCdialogs = {
filename: entry.name,
date: OC.mtime2date(entry.mtime)
});
- if (entry.mimetype === "httpd/unix-directory") {
- $li.find('img').attr('src', OC.imagePath('core', 'filetypes/folder.png'));
- } else {
- $li.find('img').attr('src', OC.Router.generate('core_ajax_preview', {x:32, y:32, file:escapeHTML(dir+'/'+entry.name)}) );
- }
+ $li.find('img').attr('src', entry.mimetype_icon);
self.$filelist.append($li);
});