From c117e719daf84c087faa0e5913a6fd96668edfcf Mon Sep 17 00:00:00 2001 From: kondou Date: Sat, 14 Sep 2013 14:35:23 +0200 Subject: Use external and shared icons in OC.Dialogs.filepicker() --- core/js/oc-dialogs.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'core/js') 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); }); -- cgit v1.2.3