fixed user search + avatar

This commit is contained in:
vcuculo 2011-08-30 22:38:39 +02:00
parent 51ace97323
commit 640408b166

View file

@ -32,9 +32,9 @@
return Diaspora.I18n.t("search_for", row);
} else {
return $("<img/>", {
'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;
})();
})();