remove "enable-search-suggestions-gaia" waffle switch
This commit is contained in:
Родитель
a16ecf9189
Коммит
9564b31d04
|
@ -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 %}>
|
||||
|
|
Загрузка…
Ссылка в новой задаче