From: Thomas Tanghus Date: Mon, 20 May 2013 07:44:31 +0000 (+0200) Subject: Don't set image path in template. X-Git-Tag: v6.0.0alpha2~750^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=27a5132b46df56dae81799e05bfeeaff27f2e4bb;p=nextcloud-server.git Don't set image path in template. --- 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 @@