Don't set image path in template.

This commit is contained in:
Thomas Tanghus 2013-05-20 09:44:31 +02:00
parent c3779555aa
commit 27a5132b46
2 changed files with 2 additions and 2 deletions

View File

@ -283,10 +283,10 @@ var OCdialogs = {
$li = self.$listTmpl.octemplate({ $li = self.$listTmpl.octemplate({
type: entry.type, type: entry.type,
dir: dir, dir: dir,
imgsrc: entry.mimetype_icon,
filename: entry.name, filename: entry.name,
date: OC.mtime2date(entry.mtime) date: OC.mtime2date(entry.mtime)
}); });
$li.find('img').attr('src', entry.mimetype_icon);
self.$filelist.append($li); self.$filelist.append($li);
}); });

View File

@ -2,7 +2,7 @@
<span class="dirtree"></span> <span class="dirtree"></span>
<ul class="filelist"> <ul class="filelist">
<li data-entryname="{filename}" data-type="{type}"> <li data-entryname="{filename}" data-type="{type}">
<img src="{imgsrc}" /> <img />
<span class="filename">{filename}</span> <span class="filename">{filename}</span>
<span class="date">{date}</span> <span class="date">{date}</span>
</li> </li>