Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

WV-1167 Fixed selection after input

Taylor Gunnoeeb45c3f83a69
diff --git a/web/js/date/wv.date.timeline.js b/web/js/date/wv.date.timeline.js
index 94e81bf7f..4a4c4ca31 100644
--- a/web/js/date/wv.date.timeline.js
+++ b/web/js/date/wv.date.timeline.js
@@ -1842,8 +1842,11 @@ wv.date.timeline = wv.date.timeline || function(models, config, ui) {
rollingDate = newDate;
$(this).parent().css("border-color", "");
updateDateInputs(rollingDate);
+ $(this).parent().find('input').select();
+ var that = this;
timer = setTimeout(function() {
model.select(rollingDate);
+ $(that).parent().find('input').select();
rollingDate = null;
timer = null;
}, 400);