mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-20 15:34:49 +02:00
Properly refer to iD.ui.confirm
This commit is contained in:
+2
-2
@@ -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.');
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user