Merge branch 'master' of github.com:discourse/discourse

This commit is contained in:
Sam Saffron 2013-02-11 19:01:52 +11:00
commit 3047d8afa3

View File

@ -129,7 +129,7 @@ window.Discourse.ComposerView = window.Discourse.View.extend
Discourse.UserSearch.search
term: term,
callback: callback,
exclude: selected
exclude: selected.concat [Discourse.get('currentUser.username')]
onChangeItems: (items) =>
items = $.map items, (i) -> if i.username then i.username else i
@set('content.targetUsernames', items.join(","))