diff options
author | Dave Lawrence <dlawrence@mozilla.com> | 2012-05-30 22:28:31 +0200 |
---|---|---|
committer | Dave Lawrence <dlawrence@mozilla.com> | 2012-05-30 22:28:31 +0200 |
commit | b8eb6641bd474fcd97f27315c46fde6dfff5fe76 (patch) | |
tree | fba9d40d19d887b2100ce64fe7cbf2dd47244622 /extensions/BMO/web/js | |
parent | ba31d11a089e92edaaee32a39ee1c0939723047a (diff) | |
download | bugzilla-b8eb6641bd474fcd97f27315c46fde6dfff5fe76.tar.gz bugzilla-b8eb6641bd474fcd97f27315c46fde6dfff5fe76.tar.xz |
- Add throbber image to product chooser in BMO extension
- Updated js code in guided.js to no longer need to add throbber as override
Diffstat (limited to 'extensions/BMO/web/js')
-rw-r--r-- | extensions/BMO/web/js/choose_product.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/extensions/BMO/web/js/choose_product.js b/extensions/BMO/web/js/choose_product.js index 507d1458b..6fe980971 100644 --- a/extensions/BMO/web/js/choose_product.js +++ b/extensions/BMO/web/js/choose_product.js @@ -21,6 +21,7 @@ YAHOO.bugzilla.prodCompSearch = { search : decodeURIComponent(enteredText) } ] }; + YAHOO.util.Dom.removeClass('prod_comp_throbber', 'hidden'); return YAHOO.lang.JSON.stringify(json_object); }, resultListFormat : function(oResultData, enteredText, sResultMatch) { @@ -60,6 +61,10 @@ YAHOO.bugzilla.prodCompSearch = { this.autoComplete.useIFrame = true; this.autoComplete.maxResultsDisplayed = 25; this.autoComplete.suppressInputUpdate = true; + this.autoComplete.doBeforeLoadData = function(sQuery, oResponse, oPayload) { + YAHOO.util.Dom.addClass('prod_comp_throbber', 'hidden'); + return true; + }; this.autoComplete.textboxFocusEvent.subscribe(function () { var input = YAHOO.util.Dom.get(field); if (input.value && input.value.length > 3) { |