From 2ef167ec0d8b7f0025bf1ef1ae9568a19f554f4d Mon Sep 17 00:00:00 2001 From: Ansis Brammanis Date: Fri, 8 Mar 2013 13:01:16 -0500 Subject: [PATCH] use ui.Toggle for geocoder results --- js/id/ui/geocoder.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/id/ui/geocoder.js b/js/id/ui/geocoder.js index 79f291fce..7d9a0575b 100644 --- a/js/id/ui/geocoder.js +++ b/js/id/ui/geocoder.js @@ -46,7 +46,7 @@ iD.ui.Geocoder = function(context) { if (d3.event.keyCode == 13) clickResult(d); }); spans.exit().remove(); - resultsList.classed('hide', false); + resultsList.call(iD.ui.Toggle(true)); } else { applyBounds(resultExtent(resp[0].boundingbox)); } @@ -75,7 +75,7 @@ iD.ui.Geocoder = function(context) { if (show !== shown) { button.classed('active', show); gcForm.call(iD.ui.Toggle(show)); - if (!show) resultsList.classed('hide', !show); + if (!show) resultsList.call(iD.ui.Toggle(show)); if (show) inputNode.node().focus(); else inputNode.node().blur(); shown = show;