//= require index/changeset
//= require index/query
//= require router
-//= require querystring
+//= require qs/dist/qs
$(document).ready(function () {
- var querystring = require("querystring-component");
-
var loaderTimeout;
var map = new L.OSM.Map("map", {
$(".welcome").addClass("visible");
}
- $(".welcome .close-wrap").on("click", function () {
+ $(".welcome .close").on("click", function () {
$(".welcome").removeClass("visible");
$.cookie("_osm_welcome", "hide", { expires: expiry, path: "/" });
});
var iframe = $("<iframe>")
.hide()
.appendTo("body")
- .attr("src", url + querystring.stringify(query))
+ .attr("src", url + Qs.stringify(query))
.on("load", function () {
$(this).remove();
loaded = true;
};
page.load = function () {
- var params = querystring.parse(location.search.substring(1));
+ var params = Qs.parse(location.search.substring(1));
if (params.query) {
$("#sidebar .search_form input[name=query]").value(params.query);
}