- for (var i = 0; i < changesets.length; ++i) {
- var changeset = changesets[i],
- rect = L.rectangle(changeset.bounds,
- {weight: 2, color: "#ee9900", fillColor: "#ffff55", fillOpacity: 0});
- rect.id = changeset.id;
- rect.addTo(group);
- }
+ content.find(".action-button").on("click", function (e) {
+ e.preventDefault();
+ var data = $(e.target).data();
+ updateChangeset(e.target.form, data.method, data.url);
+ });