summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorByron Jones <bjones@mozilla.com>2012-07-10 13:25:44 +0200
committerByron Jones <bjones@mozilla.com>2012-07-10 13:25:44 +0200
commit108565f882b5fea273687ca32767b7c4d3e28ee8 (patch)
tree9d36a73b0247541587e3e6761b3ea7cc48c9d901
parent7578f5faded58e9f9e02be19772d8ac48e16d4ff (diff)
downloadbugzilla-108565f882b5fea273687ca32767b7c4d3e28ee8.tar.gz
bugzilla-108565f882b5fea273687ca32767b7c4d3e28ee8.tar.xz
Bug 771646: Pressing enter cancels component-picking [prod_comp_search_autocomplete]
-rw-r--r--extensions/BMO/web/js/prod_comp_search.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/extensions/BMO/web/js/prod_comp_search.js b/extensions/BMO/web/js/prod_comp_search.js
index 31d3ee224..c01b3c17f 100644
--- a/extensions/BMO/web/js/prod_comp_search.js
+++ b/extensions/BMO/web/js/prod_comp_search.js
@@ -75,5 +75,8 @@ YAHOO.bugzilla.prodCompSearch = {
}
window.location.href = url;
});
+ this.autoComplete.dataReturnEvent.subscribe(function(type, args) {
+ args[0].autoHighlight = args[2].length == 1;
+ });
}
}