mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-18 14:45:12 +02:00
Fix key reference
This commit is contained in:
@@ -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);
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user