Skip to content

Instantly share code, notes, and snippets.

@samanpwbb
Created March 21, 2013 22:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samanpwbb/5217254 to your computer and use it in GitHub Desktop.
Save samanpwbb/5217254 to your computer and use it in GitHub Desktop.
connection.putChangeset(
history.changes(),
e.comment,
history.imagery_used(),
function(err, changeset_id) {
loading.remove();
if (err) {
iD.ui.confirm(context.container())
.select('.modal-section.header')
.append('h3')
.text(t('save.error'));
iD.ui.confirm(context.container())
.select('.modal-section.message-text')
.append('p')
.text(err.responseText);
} else {
history.reset();
map.flush().redraw();
success(e, changeset_id);
}
});
}
@tmcw
Copy link

tmcw commented Mar 21, 2013

var confirm = iD.ui.confirm(context.container());
confirm
    .select('.modal-section.header')
    .append('h3')
    .text(t('save.error'));
confirm;
    .select('.modal-section.message-text')
    .append('p')
    .text(err.responseText);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment