Merge pull request #1852 from vcuculo/fix-search-user

fixed user search + avatar
This commit is contained in:
Daniel Grippi 2011-08-30 20:44:55 -07:00
commit 50e7d2a254

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;
})();
})();