//= require jquery-simulate/jquery.simulate
-//= require querystring
+//= require qs/dist/qs
OSM.Search = function (map) {
- var querystring = require("querystring-component");
-
$(".search_form input[name=query]").on("input", function (e) {
if ($(e.target).val() === "") {
$(".describe_location").fadeIn(100);
var page = {};
page.pushstate = page.popstate = function (path) {
- var params = querystring.parse(path.substring(path.indexOf("?") + 1));
+ var params = Qs.parse(path.substring(path.indexOf("?") + 1));
$(".search_form input[name=query]").val(params.query);
$(".describe_location").hide();
OSM.loadSidebarContent(path, page.load);