//= require jquery
//= require jquery_ujs
-//= require jquery.autogrowtextarea
//= require jquery.timers
//= require jquery.cookie
//= require augment
-//= require openlayers
+//= require leaflet
+//= require leaflet.osm
+//= require leaflet.locationfilter
+//= require leaflet.locate
//= require i18n/translations
+//= require oauth
//= require osm
//= require piwik
//= require map
//= require sidebar
//= require richtext
//= require resize
+//= require geocoder
function zoomPrecision(zoom) {
var decimals = Math.pow(10, Math.floor(zoom/3));
// ?{node,way,relation}= can be safely omitted from the shortlink
// which encodes lat/lon/zoom. If new URL parameters are added to
// the main slippy map this needs to be changed.
- if (args.layers || args[object.type]) {
+ if (args.layers || object) {
this.href = setArgs(prefix + "/go/" + code, args);
} else {
this.href = prefix + "/go/" + code;
var auth_token = $("meta[name=csrf-token]").attr("content");
$("form input[name=authenticity_token]").val(auth_token);
});
-
-/*
- * Enable auto expansion for all text areas
- */
-$(document).ready(function () {
- $("textarea").autoGrow();
-});