From 95e6b840ee0970d4dc5e1914e8a807b96999ee0c Mon Sep 17 00:00:00 2001 From: Ansis Brammanis Date: Wed, 13 Feb 2013 13:14:57 -0500 Subject: [PATCH] Fix key reference --- js/id/services/taginfo.js | 2 +- js/id/ui/inspector.js | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/js/id/services/taginfo.js b/js/id/services/taginfo.js index fc4e725426..850de9efde 100644 --- a/js/id/services/taginfo.js +++ b/js/id/services/taginfo.js @@ -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); }); }; diff --git a/js/id/ui/inspector.js b/js/id/ui/inspector.js index bc15cdbb42..7357646d1c 100644 --- a/js/id/ui/inspector.js +++ b/js/id/ui/inspector.js @@ -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')