Changeset View
Changeset View
Standalone View
Standalone View
webroot/rsrc/js/core/behavior-search-typeahead.js
Show First 20 Lines • Show All 64 Lines • ▼ Show 20 Lines | var sort_handler = function(value, list, cmp) { | ||||
var ii; | var ii; | ||||
var type_order = [ | var type_order = [ | ||||
'jump', | 'jump', | ||||
'apps', | 'apps', | ||||
'proj', | 'proj', | ||||
'user', | 'user', | ||||
'repo', | 'repo', | ||||
'wiki', | |||||
'symb', | 'symb', | ||||
'misc' | 'misc' | ||||
]; | ]; | ||||
var type_map = {}; | var type_map = {}; | ||||
for (ii = 0; ii < type_order.length; ii++) { | for (ii = 0; ii < type_order.length; ii++) { | ||||
type_map[type_order[ii]] = true; | type_map[type_order[ii]] = true; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 185 Lines • Show Last 20 Lines |