remove "enable-search-suggestions-gaia" waffle switch

This commit is contained in:
Chris Van 2013-02-07 00:40:05 -08:00
Родитель a16ecf9189
Коммит 9564b31d04
4 изменённых файлов: 2 добавлений и 9 удалений

Просмотреть файл

@ -17,7 +17,6 @@ var z = {
},
canInstallApps: true,
allowAnonInstalls: !!$('body').data('allow-anon-installs'),
enableSearchSuggestions: !!$('body').data('enable-search-suggestions'),
state: {}
};

Просмотреть файл

@ -1,15 +1,9 @@
// Init site search suggestions and populate the suggestions container.
(function() {
// MKT search init.
// Disable suggestions on Gaia for now.
var suggestions;
if (!z.capabilities.gaia || z.enableSearchSuggestions) {
suggestions = $('#search #search-q').searchSuggestions(
var suggestions = $('#search #search-q').searchSuggestions(
$('#site-search-suggestions'), processResults, 'MKT');
suggestions.on('dismissed', abortRequest);
}
var current_search = null;
var previous_request = null;

Просмотреть файл

@ -0,0 +1 @@
DELETE FROM waffle_switch_mkt WHERE name = 'enable-search-suggestions-gaia';

Просмотреть файл

@ -65,7 +65,6 @@
data-collect-timings="{{ url('mkt.timing.record') }}:{{ collect_timings_percent }}"
data-simulate-nav-pay="{{ settings.SIMULATE_NAV_PAY|json }}"
data-page-type="{{ pagetype or 'leaf' }}"
data-enable-search-suggestions="{{ waffle.switch('enable-search-suggestions-gaia')|json }}"
data-locales="{{ settings.LANGUAGE_URL_MAP|json }}"
{% if not logged %}data-recaptcha="{{ settings.RECAPTCHA_PUBLIC_KEY }}"{% endif %}
{% block bodyattrs %}{% endblock %}>