Skip to content
This repository has been archived by the owner on Mar 15, 2018. It is now read-only.

Commit

Permalink
disable gaia search suggestions for now
Browse files Browse the repository at this point in the history
  • Loading branch information
spasovski authored and cvan committed Oct 8, 2012
1 parent 0f7f0de commit 9f1e204
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions media/js/mkt/mkt_suggestions.js
@@ -1,8 +1,10 @@
// Init site search suggestions and populate the suggestions container.
(function() {
// MKT search init.
$('#search #search-q').searchSuggestions($('#site-search-suggestions'),
processResults, 'MKT');
if (!z.capabilities.gaia) { // Disable suggestions on Gaia for now.
$('#search #search-q').searchSuggestions($('#site-search-suggestions'),
processResults, 'MKT');
}

var previous_request;

Expand Down Expand Up @@ -41,7 +43,7 @@
$('#site-header').addClass('suggestions');
}
});

if (previous_request) {
previous_request.abort();
}
Expand Down

0 comments on commit 9f1e204

Please sign in to comment.