From 0cbe53b9c751f386ea077b18e158d7fab92c022e Mon Sep 17 00:00:00 2001 From: Jessica McKellar Date: Mon, 11 Feb 2013 10:03:42 -0500 Subject: [PATCH] Autocomplete @notifications to your bolded full name. This is a stopgap to handle e-mail addresses like me@foo.com. (imported from commit 804b477214d45f46373b2138d5ff9036644c87da) --- zephyr/static/js/composebox_typeahead.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zephyr/static/js/composebox_typeahead.js b/zephyr/static/js/composebox_typeahead.js index b805a86d6b..385f86b6f7 100644 --- a/zephyr/static/js/composebox_typeahead.js +++ b/zephyr/static/js/composebox_typeahead.js @@ -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 });