Put 'narrow to messages containing' before 'find in page'.

This fixes Trac #740.

(imported from commit e40ffa149eac3c7d954d6cac617935496d366ce4)
This commit is contained in:
Waseem Daher 2013-01-30 17:35:58 -05:00
parent 85db4eba46
commit 0eca9fa595

View File

@ -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;