waffle search suggestions on gaia
This commit is contained in:
Родитель
223ca01635
Коммит
08403addc7
|
@ -16,6 +16,7 @@ var z = {
|
|||
},
|
||||
canInstallApps: true,
|
||||
allowAnonInstalls: !!$('body').data('allow-anon-installs'),
|
||||
enableSearchSuggestions: !!$('body').data('enable-search-suggestions'),
|
||||
// if ($('#myDialog li').length > z.confirmBreakNum) add class 'two-col'.
|
||||
confirmBreakNum: 6
|
||||
};
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Init site search suggestions and populate the suggestions container.
|
||||
(function() {
|
||||
// MKT search init.
|
||||
if (!z.capabilities.gaia) { // Disable suggestions on Gaia for now.
|
||||
if (!z.capabilities.gaia || z.enableSearchSuggestions) { // Disable suggestions on Gaia for now.
|
||||
$('#search #search-q').searchSuggestions($('#site-search-suggestions'),
|
||||
processResults, 'MKT');
|
||||
}
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
INSERT INTO waffle_switch_mkt (name, active, note)
|
||||
VALUES ('enable-search-suggestions-gaia', 0,
|
||||
'Enable search suggestions on Firefox OS.');
|
|
@ -59,6 +59,7 @@
|
|||
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 }}"
|
||||
{% if not logged %}data-recaptcha="{{ settings.RECAPTCHA_PUBLIC_KEY }}"{% endif %}
|
||||
{% block bodyattrs %}{% endblock %}>
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче