From 640408b1665abe81838922655644f56b9a757016 Mon Sep 17 00:00:00 2001 From: vcuculo Date: Tue, 30 Aug 2011 22:38:39 +0200 Subject: [PATCH] fixed user search + avatar --- public/javascripts/widgets/search.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/public/javascripts/widgets/search.js b/public/javascripts/widgets/search.js index 831463074..7028750f3 100644 --- a/public/javascripts/widgets/search.js +++ b/public/javascripts/widgets/search.js @@ -32,9 +32,9 @@ return Diaspora.I18n.t("search_for", row); } else { return $("", { - 'class': "avatar", + "class": "avatar", src: row.avatar - }).html() + row.name; + })[0].outerHTML + row.name; } }; @@ -63,11 +63,11 @@ if (data['search'] === true) { // The placeholder "search for" result window.location = self.searchFormAction + '?' + self.searchInputName + '=' + data['name']; } else { // The actual result - element.val(formatted); + self.options.element.val(formatted); window.location = data['url']; } }; }; Diaspora.Widgets.Search = Search; -})(); \ No newline at end of file +})();