From 27a5132b46df56dae81799e05bfeeaff27f2e4bb Mon Sep 17 00:00:00 2001 From: Thomas Tanghus Date: Mon, 20 May 2013 09:44:31 +0200 Subject: [PATCH] Don't set image path in template. --- core/js/oc-dialogs.js | 2 +- 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 e05b3b0207..316a99592f 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 2b7942bd46..e761fbdb56 100644 --- a/core/templates/filepicker.html +++ b/core/templates/filepicker.html @@ -2,7 +2,7 @@