Skip to content

Commit

Permalink
Fix key reference
Browse files Browse the repository at this point in the history
  • Loading branch information
ansis committed Feb 13, 2013
1 parent a21b973 commit 95e6b84
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion js/id/services/taginfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ iD.taginfo = function() {
page: 1
}, parameters)), function(err, d) {
if (err) return callback(err);
callback(null, d.data.filter(popularValues()).map(valKeyDescription));
callback(null, d.data.filter(popularValues()).map(valKeyDescription), parameters);
});
};

Expand Down
8 changes: 4 additions & 4 deletions js/id/ui/inspector.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,16 +176,16 @@ iD.ui.Inspector = function() {
}
}

function keyReference(err, values) {
if (!err && values.data.length) {
function keyReference(err, values, params) {
if (!err && values.length) {
iD.ui.modal(context.container())
.select('.content')
.datum({
data: values.data,
data: values,
title: 'Key:' + params.key,
geometry: params.geometry
})
.call(iD.keyReference(context));
.call(iD.ui.keyReference);
} else {
iD.ui.flash(context.container())
.select('.content')
Expand Down

0 comments on commit 95e6b84

Please sign in to comment.