//= require leaflet.locatecontrol/src/L.Control.Locate
+(function () {
+ $(document).on("change", "#user_all", function () {
+ $("#user_list input[type=checkbox]").prop("checked", $("#user_all").prop("checked"));
+ });
+}());
+
$(document).ready(function () {
var defaultHomeZoom = 12;
var map, marker, deleted_lat, deleted_lon;
var user = $(this).data("user");
if (user.lon && user.lat) {
L.marker([user.lat, user.lon], { icon: OSM.getUserIcon(user.icon) }).addTo(map)
- .bindPopup(user.description);
+ .bindPopup(user.description, { minWidth: 200 });
}
});
}
enableAuth();
}
- $("#user_all").change(function () {
- $("#user_list input[type=checkbox]").prop("checked", $("#user_all").prop("checked"));
- });
-
$("#content.user_confirm").each(function () {
$(this).hide();
$(this).find("#confirm").submit();