summaryrefslogtreecommitdiffstats
path: root/extensions/BMO/web
diff options
context:
space:
mode:
authorByron Jones <bjones@mozilla.com>2012-05-30 06:06:55 +0200
committerByron Jones <bjones@mozilla.com>2012-05-30 06:06:55 +0200
commit61ab486097a60756792bc031c836f0e55393295c (patch)
tree98d674d833a08d7cedafde8c2349b091163f4459 /extensions/BMO/web
parentce8f837dcd1ccd23cd5f63f258efd257e3de70f3 (diff)
downloadbugzilla-61ab486097a60756792bc031c836f0e55393295c.tar.gz
bugzilla-61ab486097a60756792bc031c836f0e55393295c.tar.xz
Bug 758141: add component searching to guided bug entry
Diffstat (limited to 'extensions/BMO/web')
-rw-r--r--extensions/BMO/web/js/choose_product.js21
1 files changed, 11 insertions, 10 deletions
diff --git a/extensions/BMO/web/js/choose_product.js b/extensions/BMO/web/js/choose_product.js
index 7298a6b92..507d1458b 100644
--- a/extensions/BMO/web/js/choose_product.js
+++ b/extensions/BMO/web/js/choose_product.js
@@ -10,6 +10,7 @@ YAHOO.bugzilla.prodCompSearch = {
counter : 0,
format : '',
dataSource : null,
+ autoComplete: null,
generateRequest : function (enteredText) {
YAHOO.bugzilla.prodCompSearch.counter = YAHOO.bugzilla.prodCompSearch.counter + 1;
YAHOO.util.Connect.setDefaultPostHeader('application/json', true);
@@ -50,16 +51,16 @@ YAHOO.bugzilla.prodCompSearch = {
this.init_ds();
}
this.format = format;
- var prodCompSearch = new YAHOO.widget.AutoComplete(field, container, this.dataSource);
- prodCompSearch.generateRequest = this.generateRequest;
- prodCompSearch.formatResult = this.resultListFormat;
- prodCompSearch.minQueryLength = 3;
- prodCompSearch.autoHighlight = false;
- prodCompSearch.queryDelay = 0.05;
- prodCompSearch.useIFrame = true;
- prodCompSearch.maxResultsDisplayed = 25;
- prodCompSearch.suppressInputUpdate = true;
- prodCompSearch.textboxFocusEvent.subscribe(function () {
+ this.autoComplete = new YAHOO.widget.AutoComplete(field, container, this.dataSource);
+ this.autoComplete.generateRequest = this.generateRequest;
+ this.autoComplete.formatResult = this.resultListFormat;
+ this.autoComplete.minQueryLength = 3;
+ this.autoComplete.autoHighlight = false;
+ this.autoComplete.queryDelay = 0.05;
+ this.autoComplete.useIFrame = true;
+ this.autoComplete.maxResultsDisplayed = 25;
+ this.autoComplete.suppressInputUpdate = true;
+ this.autoComplete.textboxFocusEvent.subscribe(function () {
var input = YAHOO.util.Dom.get(field);
if (input.value && input.value.length > 3) {
this.sendQuery(input.value);