Don't set image path in template.
This commit is contained in:
parent
c3779555aa
commit
27a5132b46
|
@ -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);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue