Properly refer to iD.ui.confirm

This commit is contained in:
Brandon Liu
2013-01-19 22:57:37 -08:00
parent 59d37125df
commit 3b722ed503
+2 -2
View File
@@ -22,7 +22,7 @@ iD.ui.save = function() {
history.reset();
map.flush().redraw();
if (err) {
var desc = iD.confirm()
var desc = iD.ui.confirm()
.select('.description');
desc.append('h2')
.text('An error occurred while trying to save');
@@ -68,7 +68,7 @@ iD.ui.save = function() {
.on('save', commit));
});
} else {
iD.confirm().select('.description')
iD.ui.confirm().select('.description')
.append('h3').text('You don\'t have any changes to save.');
}
});