Merge pull request #450 from metamaps/feature/fix-searchbox
fix searchbox
This commit is contained in:
commit
844a52fc52
3 changed files with 5 additions and 11 deletions
app
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,12 +19,6 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.explorePage .sidebarSearchField,
|
|
||||||
.explorePage .sidebarSearch .tt-hint {
|
|
||||||
width: 380px;
|
|
||||||
padding: 5px 10px 5px 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.sidebarSearchIcon {
|
.sidebarSearchIcon {
|
||||||
float: left;
|
float: left;
|
||||||
width: 72px;
|
width: 72px;
|
||||||
|
|
|
@ -47,7 +47,7 @@
|
||||||
Metamaps.Maps.Active = <%= @maps.to_json.html_safe %>;
|
Metamaps.Maps.Active = <%= @maps.to_json.html_safe %>;
|
||||||
Metamaps.currentSection = "";
|
Metamaps.currentSection = "";
|
||||||
Metamaps.currentPage = "";
|
Metamaps.currentPage = "";
|
||||||
Metamaps.GlobalUI.Search.isOpen = true;
|
Metamaps.GlobalUI.Search.open();
|
||||||
Metamaps.GlobalUI.Search.lock();
|
Metamaps.GlobalUI.Search.lock();
|
||||||
</script>
|
</script>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
Loading…
Reference in a new issue