//= require jquery.timers
//= require jquery.cookie
//= require jquery.throttle-debounce
+//= require bootstrap.tooltip
+//= require bootstrap.dropdown
//= require augment
//= require osm
//= require leaflet
return [center.lng, center.lat, map.getZoom(), map.getLayersCode()].join('|');
}
+function escapeHTML(string) {
+ var htmlEscapes = {
+ '&': '&',
+ '<': '<',
+ '>': '>',
+ '"': '"',
+ "'": '''
+ };
+ return string == null ? '' : (string + '').replace(/[&<>"']/g, function(match) {
+ return htmlEscapes[match];
+ });
+}
+
/*
* Forms which have been cached by rails may have the wrong
* authenticity token, so patch up any forms with the correct