1
0
forked from MTSR/mapserver
mapserver/server/static/js/search/SearchMenu.js

25 lines
495 B
JavaScript
Raw Normal View History

var SearchMenu = {
view: function(){
var style = {};
2019-04-14 20:51:31 +03:00
if (!SearchStore.query) {
style.display = "none";
}
2019-04-14 20:51:31 +03:00
function close(){
SearchStore.clear();
}
return m("div", { class: "card", id: "search-menu", style: style }, [
2019-04-14 20:51:31 +03:00
m("div", { class: "card-header" }, [
m("i", { class: "fa fa-search"}),
"Search",
m("i", { class: "fa fa-times float-right", onclick: close }),
]),
m("div", { class: "card-body" })
]);
}
}