summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorBartek Przybylski <bart.p.pl@gmail.com>2012-04-03 22:17:34 +0200
committerBartek Przybylski <bart.p.pl@gmail.com>2012-04-03 22:18:03 +0200
commitcd05dfb9430da93f2584d928ef963c625562c8fa (patch)
tree2c4f36fb86002a070959d7c0cef59625fdfc788c /core
parentdd4e577f6db422aed3d528d12a8e77de9c3cfaef (diff)
downloadnextcloud-server-cd05dfb9430da93f2584d928ef963c625562c8fa.tar.gz
nextcloud-server-cd05dfb9430da93f2584d928ef963c625562c8fa.zip
adding icons to filepicker
Diffstat (limited to 'core')
-rw-r--r--core/js/oc-dialogs.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/js/oc-dialogs.js b/core/js/oc-dialogs.js
index d40c433bda2..7ae9bc9d2ad 100644
--- a/core/js/oc-dialogs.js
+++ b/core/js/oc-dialogs.js
@@ -204,7 +204,7 @@ OCdialogs = {
var entry_template = '<div onclick="javascript:OC.dialogs.handlePickerClick(this, \'*ENTRYNAME*\',\''+dialog_content_id+'\')" data="*ENTRYTYPE*"><img src="*MIMETYPEICON*" style="margin-right:1em;"><span id="filename">*NAME*</span><div style="float:right;margin-right:1em;">*LASTMODDATE*</div></div>';
var names = '';
for (var a in r.data) {
- names += entry_template.replace('*LASTMODDATE*', OC.mtime2date(r.data[a].mtime)).replace('*NAME*', r.data[a].name).replace('*MIMETYPEICON*', OC.webroot+'/core/img/filetypes/'+(r.data[a].type=='dir'?'folder':r.data[a].mimetype.replace('/','-'))+'.png').replace('*ENTRYNAME*', r.data[a].name).replace('*ENTRYTYPE*', r.data[a].type);
+ names += entry_template.replace('*LASTMODDATE*', OC.mtime2date(r.data[a].mtime)).replace('*NAME*', r.data[a].name).replace('*MIMETYPEICON*', r.data[a].mimetype_icon).replace('*ENTRYNAME*', r.data[a].name).replace('*ENTRYTYPE*', r.data[a].type);
}
$(dialog_content_id + ' #filelist').html(names);
},