fix handleResultClick on search box

This commit is contained in:
Devin Howard 2015-12-24 15:42:51 +08:00
parent a45d0f7791
commit 40561c629a

View file

@ -614,14 +614,14 @@ Metamaps.GlobalUI.Search = {
self.hideLoader();
if (datum.rtype != "noresult") {
if (["topic", "map", "mapper"].indexOf(datum.rtype) !== -1) {
self.close(0, true);
var win;
if (dataset == "topics") {
if (datum.rtype == "topic") {
Metamaps.Router.topics(datum.id);
} else if (dataset == "maps") {
} else if (datum.rtype == "map") {
Metamaps.Router.maps(datum.id);
} else if (dataset == "mappers") {
} else if (datum.rtype == "mapper") {
Metamaps.Router.explore("mapper", datum.id);
}
}