mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 17:23:02 +00:00
Leave out the changeset_id when downloading osmChange file
per https://github.com/openstreetmap/iD/pull/4350#discussion_r139261887
This commit is contained in:
@@ -94,9 +94,12 @@ export function uiCommitChanges(context) {
|
||||
|
||||
|
||||
// Download changeset link
|
||||
var changeset = new osmChangeset({ id: 'CHANGEME' }),
|
||||
changes = history.changes(actionDiscardTags(history.difference())),
|
||||
data = JXON.stringify(changeset.osmChangeJXON(changes)),
|
||||
var changeset = new osmChangeset().update({ id: undefined }),
|
||||
changes = history.changes(actionDiscardTags(history.difference()));
|
||||
|
||||
delete changeset.id; // Export without chnageset_id
|
||||
|
||||
var data = JXON.stringify(changeset.osmChangeJXON(changes)),
|
||||
uri = 'data:text/xml;charset=utf-8,' + encodeURIComponent(data);
|
||||
|
||||
var linkEnter = container.selectAll('.download-changes')
|
||||
|
||||
Reference in New Issue
Block a user