aboutsummaryrefslogtreecommitdiffstats
path: root/core/js/oc-dialogs.js
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2013-09-15 02:42:14 -0700
committerThomas Müller <thomas.mueller@tmit.eu>2013-09-15 02:42:14 -0700
commitdb7e1dd877698a02a0d17482413a44f49dd16819 (patch)
tree6efebb6f4998f4b159fda8f284703df361ff7ec7 /core/js/oc-dialogs.js
parenta58e176852d80dd23b9346b4f8bd676e9ca4d8ed (diff)
parentc117e719daf84c087faa0e5913a6fd96668edfcf (diff)
downloadnextcloud-server-db7e1dd877698a02a0d17482413a44f49dd16819.tar.gz
nextcloud-server-db7e1dd877698a02a0d17482413a44f49dd16819.zip
Merge pull request #4853 from owncloud/external-shared_mimetype-icons
Use external and shared icons in OC.Dialogs.filepicker()
Diffstat (limited to 'core/js/oc-dialogs.js')
-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 961e2ae13a4..8e8a477772b 100644
--- a/core/js/oc-dialogs.js
+++ b/core/js/oc-dialogs.js
@@ -302,11 +302,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);
});