From 0eca9fa595e290e26da1c24cd8069d58add1c558 Mon Sep 17 00:00:00 2001 From: Waseem Daher Date: Wed, 30 Jan 2013 17:35:58 -0500 Subject: [PATCH] Put 'narrow to messages containing' before 'find in page'. This fixes Trac #740. (imported from commit e40ffa149eac3c7d954d6cac617935496d366ce4) --- zephyr/static/js/search.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zephyr/static/js/search.js b/zephyr/static/js/search.js index 9b02cb5dec..9aeab47c62 100644 --- a/zephyr/static/js/search.js +++ b/zephyr/static/js/search.js @@ -48,8 +48,8 @@ exports.update_typeahead = function () { }); var options = streams.concat(people); // The first two slots are reserved for our query. - options.unshift({action: 'operators', query: '', operators: []}); options.unshift({action: 'search', query: ''}); + options.unshift({action: 'operators', query: '', operators: []}); mapped = {}; labels = []; @@ -111,7 +111,7 @@ function searchbox_sorter(items) { }); var query = this.query; - $.each(['search', 'operators', 'stream', 'private_message'], function (idx, action) { + $.each(['operators', 'search', 'stream', 'private_message'], function (idx, action) { var objs = objects_by_action[action]; if (!objs) return;