fix handleResultClick on search box
This commit is contained in:
parent
a45d0f7791
commit
40561c629a
1 changed files with 4 additions and 4 deletions
|
@ -614,14 +614,14 @@ Metamaps.GlobalUI.Search = {
|
||||||
|
|
||||||
self.hideLoader();
|
self.hideLoader();
|
||||||
|
|
||||||
if (datum.rtype != "noresult") {
|
if (["topic", "map", "mapper"].indexOf(datum.rtype) !== -1) {
|
||||||
self.close(0, true);
|
self.close(0, true);
|
||||||
var win;
|
var win;
|
||||||
if (dataset == "topics") {
|
if (datum.rtype == "topic") {
|
||||||
Metamaps.Router.topics(datum.id);
|
Metamaps.Router.topics(datum.id);
|
||||||
} else if (dataset == "maps") {
|
} else if (datum.rtype == "map") {
|
||||||
Metamaps.Router.maps(datum.id);
|
Metamaps.Router.maps(datum.id);
|
||||||
} else if (dataset == "mappers") {
|
} else if (datum.rtype == "mapper") {
|
||||||
Metamaps.Router.explore("mapper", datum.id);
|
Metamaps.Router.explore("mapper", datum.id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue