diff options
author | Thomas Tanghus <thomas@tanghus.net> | 2013-05-20 09:44:31 +0200 |
---|---|---|
committer | Thomas Tanghus <thomas@tanghus.net> | 2013-05-20 09:44:31 +0200 |
commit | 27a5132b46df56dae81799e05bfeeaff27f2e4bb (patch) | |
tree | c8105ddf8004847d606ad00e9e24431fe83f4695 /core | |
parent | c3779555aa38940cb16790407c71bc852b9bd742 (diff) | |
download | nextcloud-server-27a5132b46df56dae81799e05bfeeaff27f2e4bb.tar.gz nextcloud-server-27a5132b46df56dae81799e05bfeeaff27f2e4bb.zip |
Don't set image path in template.
Diffstat (limited to 'core')
-rw-r--r-- | core/js/oc-dialogs.js | 2 | ||||
-rw-r--r-- | core/templates/filepicker.html | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/core/js/oc-dialogs.js b/core/js/oc-dialogs.js index e05b3b0207a..316a99592f5 100644 --- a/core/js/oc-dialogs.js +++ b/core/js/oc-dialogs.js @@ -283,10 +283,10 @@ var OCdialogs = { $li = self.$listTmpl.octemplate({ type: entry.type, dir: dir, - imgsrc: entry.mimetype_icon, filename: entry.name, date: OC.mtime2date(entry.mtime) }); + $li.find('img').attr('src', entry.mimetype_icon); self.$filelist.append($li); }); diff --git a/core/templates/filepicker.html b/core/templates/filepicker.html index 2b7942bd46a..e761fbdb567 100644 --- a/core/templates/filepicker.html +++ b/core/templates/filepicker.html @@ -2,7 +2,7 @@ <span class="dirtree"></span> <ul class="filelist"> <li data-entryname="{filename}" data-type="{type}"> - <img src="{imgsrc}" /> + <img /> <span class="filename">{filename}</span> <span class="date">{date}</span> </li> |