Fix calls to ui.flash

This commit is contained in:
Ansis Brammanis
2013-02-07 01:16:51 -05:00
parent 4f6637d58b
commit ec152716fb
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -106,7 +106,7 @@ iD.Map = function(context) {
}
if (Math.log(d3.event.scale / Math.LN2 - 8) < minzoom + 1) {
iD.ui.flash()
iD.ui.flash(context.container())
.select('.content')
.text('Cannot zoom out further in current mode.');
return map.zoom(16);
+1 -1
View File
@@ -12,7 +12,7 @@ iD.ui.geocoder = function() {
if (err) return hide();
hide();
if (!resp.length) {
return iD.ui.flash()
return iD.ui.flash(context.container())
.select('.content')
.append('h3')
.text('No location found for "' + searchVal + '"');
+1 -1
View File
@@ -163,7 +163,7 @@ iD.ui.inspector = function() {
})
.call(iD.keyReference(context));
} else {
iD.ui.flash()
iD.ui.flash(context.container())
.select('.content')
.append('h3')
.text(t('inspector.no_documentation_key'));