Autocomplete @notifications to your bolded full name.

This is a stopgap to handle e-mail addresses like me@foo.com.

(imported from commit 804b477214d45f46373b2138d5ff9036644c87da)
This commit is contained in:
Jessica McKellar 2013-02-11 10:03:42 -05:00
parent 53f0b00785
commit 0cbe53b9c7

View File

@ -202,7 +202,7 @@ exports.initialize = function () {
},
sorter: typeahead_helper.sort_textbox_typeahead,
updater: function (item) {
return this.query.replace(/@\S+$/, "") + "@" + typeahead_helper.private_message_mapped[item].email.split("@")[0];
return this.query.replace(/@\S+$/, "") + "@**" + typeahead_helper.private_message_mapped[item].full_name + "**";
},
stopAdvance: true // Do not advance to the next field on a tab or enter
});