Fix for portal search
This commit is contained in:
parent
aa0393c518
commit
c922ade636
@ -225,6 +225,8 @@ addHook('search', function(query) {
|
||||
|
||||
$.each(portals, function(guid, portal) {
|
||||
var data = portal.options.data;
|
||||
if(!data.title) return;
|
||||
|
||||
if(data.title.toLowerCase().indexOf(term) !== -1) {
|
||||
var team = portal.options.team;
|
||||
var color = team==TEAM_NONE ? '#CCC' : COLORS[team];
|
||||
|
Loading…
x
Reference in New Issue
Block a user