Commit graph

44 commits

Author SHA1 Message Date
Tom Hughes
79447e7549 Replace querystring parser with qs yarn module 2020-08-06 20:51:55 +01:00
Tom Hughes
5b061ef690 Move jquery.simulate to be a yarn managed asset 2020-08-06 19:19:55 +01:00
Andy Allan
a3795cddbb Move the search results to use list-group-flush 2020-01-16 12:39:13 +01:00
Tom Hughes
6dd451c7ee Stop creating a shared global querystring variable 2019-07-15 20:28:54 +01:00
Tom Hughes
a47c0a4411 Update querystring references 2019-07-15 10:03:09 +01:00
Tom Hughes
c4c0e8105a Enforce consistent indentation in javascript code 2019-07-14 10:52:18 +01:00
Tom Hughes
5bd59e1936 Enable a number of eslint style rules 2019-04-07 17:02:39 +01:00
Tom Hughes
eb7678145a Use double quotes consistently in javascript code 2019-04-06 15:59:34 +01:00
Tom Hughes
1f13321a60 Fix issues found by eslint 2019-04-01 22:03:39 +01:00
Ilya Zverev
67925e6d98 Do not display two coordinates on 'where am I' click
Closes #1968
2018-09-03 17:46:26 +01:00
Simon Legner
94f02270c1 Pan to first Nominatim search result
Fixes #919
Closes #1041
2016-08-15 20:58:07 +01:00
Aditya Prakash
ed151fdb78 Hide .describe_location on push and popstate 2015-11-13 09:41:47 +05:30
Tom Hughes
11af851248 Remove duplicate search handlers
Fixes #922
2015-03-05 00:34:06 +00:00
Tom Hughes
bd2e999756 Move some javascript functions out of global scope 2015-02-24 00:19:08 +00:00
Tom Hughes
1596713871 Fix some JSHint complaints 2015-02-23 21:45:57 +00:00
Matt Amos
9995d316b2 Pre-fill directions 'from' field with search query, if any. 2015-01-26 14:52:18 +00:00
Matt Amos
a3eb48385b Merge remote-tracking branch 'upstream/master' into routing
Conflicts:
	app/assets/javascripts/index.js
	app/assets/javascripts/leaflet.map.js.erb
	config/environments/production.rb
	config/locales/de.yml
2014-11-03 11:08:13 +00:00
Tom Hughes
d1bebd0803 Make sure we pan immediately when a search result is clicked
Fixes #763
2014-06-18 09:36:02 +01:00
Tom Hughes
103fd8a38f Improve behaviour of new search markers 2014-06-17 19:12:32 +01:00
Tom Hughes
399fe3c12a Highlight search results when the mouse is over them
Fixes #748
2014-06-15 14:11:17 +01:00
John Firebaugh
f2bf38606e Permalinks for directions 2014-05-14 15:52:25 -07:00
Tom Hughes
9cc9a00988 Restore autofocusing of the search field
Use the HTML5 autofocus attribute, and focus on load for browsers
which don't support it.

Also change the removal of the "Where am I?" prompt to happen on
input rather than when the field is focused, so that it is properly
removed and restored when the field has been autofocused.

Fixes https://trac.openstreetmap.org/ticket/5065
2013-12-10 19:45:28 +00:00
John Firebaugh
a47d6c212d Restore marker for non-browse search results
Fixes #615
2013-12-05 19:10:48 +00:00
John Firebaugh
95f1069552 Fix application error on non-feature search results
Fixes #560
2013-12-02 14:08:56 -08:00
Aaron Lidman
86ae401aac Nominatim results zoom to the result location 2013-11-20 12:37:57 -08:00
Aaron Lidman
fec9dc84c0 No hash on browse pages, closes #35 2013-11-14 17:41:20 -08:00
John Firebaugh
853dc286b9 Add sidebar loading indicator 2013-11-12 17:01:47 -08:00
John Firebaugh
59f1a6d496 Fix search 2013-11-11 13:39:20 -08:00
John Firebaugh
0d52b82d4e Move search form to header on small screens 2013-11-11 13:38:46 -08:00
Aaron Lidman
1ae7872ed8 Update title on pushState, closes #33 2013-11-08 16:10:08 -08:00
John Firebaugh
cdfe2ac21e Redo mobile styles 2013-11-07 17:25:03 -08:00
Aaron Lidman
e7d200c4a6 Sidebar close reverts to 'view' state 2013-11-06 16:59:14 -08:00
John Firebaugh
ee9642a28b Link search results directly to browse pages 2013-11-05 12:26:59 -08:00
John Firebaugh
8530e3eedb AJAXy changeset history 2013-10-13 14:46:09 -07:00
John Firebaugh
db675e706a Fix click on search result 2013-10-13 14:46:09 -07:00
John Firebaugh
aa20398cea Consolidate search-related JavaScript 2013-10-13 14:46:09 -07:00
John Firebaugh
32645dd856 Implement closing sidebar 2013-10-13 14:46:09 -07:00
John Firebaugh
35458c0096 Convert search to pushState 2013-10-13 14:46:08 -07:00
John Firebaugh
d3bf4149e0 Don't autofocus search, fade out "Where am I?" on focus 2013-10-13 14:46:06 -07:00
John Firebaugh
a01195f149 Sidebar work 2013-10-13 14:45:58 -07:00
John Firebaugh
aaeca5b534 Use reverse geocoders for any lat/lon queries
This simplifies the implementation, allows code sharing with
"Where am I?", and produces friendlier results for lat/lon
searches (actual reverse geocode results rather than a raw
lat/lon display).
2013-10-13 19:30:38 +01:00
Tom Hughes
258e66299a Fix the "Where am I?" link 2013-08-07 08:42:57 +01:00
John Firebaugh
a1af4d5de1 Hide search marker/object when closing sidebar
Fixes #417
2013-08-06 20:23:13 +01:00
John Firebaugh
c6cde2653b Refactor search JS 2013-08-06 20:23:06 +01:00