From f0c0dc48d8ce451f57e7494d3a45de2a14613d1a Mon Sep 17 00:00:00 2001 From: Devin Howard Date: Mon, 26 Oct 2015 21:01:13 +0800 Subject: [PATCH] add highlight to typeahead --- app/assets/javascripts/src/Metamaps.js.erb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/assets/javascripts/src/Metamaps.js.erb b/app/assets/javascripts/src/Metamaps.js.erb index 9846f4ea..84fd38bc 100644 --- a/app/assets/javascripts/src/Metamaps.js.erb +++ b/app/assets/javascripts/src/Metamaps.js.erb @@ -678,6 +678,7 @@ Metamaps.Create = { // initialize the autocomplete results for the metacode spinner $('#topic_name').typeahead( { + highlight: true, minLength: 2, }, [{ @@ -767,6 +768,7 @@ Metamaps.Create = { // initialize the autocomplete results for synapse creation $('#synapse_desc').typeahead( { + highlight: true, minLength: 2, }, [{