Commit graph

37 commits

Author SHA1 Message Date
Nick Doiron
a4f601b114
rm spaces 2022-01-12 19:16:09 -05:00
Nick Doiron
e9522b0205
add dir="auto" to search fields
Improves right-to-left text input support
2022-01-12 19:06:18 -05:00
Tom Hughes
e842c7be97 Add missing autocomplete attributes 2021-07-27 19:36:47 +01:00
Andy Allan
9bd1d74091 Prevent input group wrapping when sidebar is resized
Fixes #3119
2021-03-04 11:04:47 +00:00
Andy Allan
f7b8b114a6 Convert the search forms to bootstrap
This moves the forms to a flex grid, albeit with a little twiddling
to get things working in a compact space.
2021-02-24 12:21:51 +00:00
Andy Allan
627f2493fa Refactor away from global form control styling
This enables forms to be converted one-by-one to bootstrap. Without this
refactoring, these global styles interfere with form control styling from
bootstrap.

The rearrangement of the search and directions styling is to solve CSS selector specitivity issues.
2020-07-01 17:23:02 +02:00
Tom Hughes
3af16f6337 erblint: fix remaining single quoted strings 2019-03-27 16:15:19 +00:00
Andy Allan
74b91c0e3e erblint: Add or remove curly braces around hash parameters as required 2019-03-27 10:30:48 +01:00
Andy Allan
040c0184a4 erblint: use hash rocket syntax 2019-03-27 10:03:56 +01:00
Andy Allan
9077419ca8 Whitespace fixes for layouts erb files 2019-03-26 20:23:35 +00:00
J Guthrie
7a933cf928 Added 'Reverse Directions' link
Added a text link that reverses the directions of the planned route
2017-12-17 01:09:09 +00:00
Tom Hughes
5d740d8733 Don't disable search submission buttons on form submission 2017-06-30 10:01:22 +01:00
Tom Hughes
05caad1a5d Fix some validation issues 2015-03-16 20:49:14 +00:00
Tom Hughes
d73a4efef0 Remove inline styling 2015-03-16 20:29:40 +00:00
Tom Hughes
6d9d688080 Simplify close icon for routing panel and fix validation error 2015-03-16 20:26:59 +00:00
Tom Hughes
44a0835487 Move routing "Go" button up alongside the dropdown 2015-02-01 12:58:08 +00:00
Matt Amos
7a44ae6cdc Use CSS rather than HTML attributes for styling. 2015-01-26 18:02:00 +00:00
Matt Amos
5afe47e3f6 Use larger 'spinner' when waiting for route request. Replace HTML in content to avoid resize. 2015-01-26 17:18:32 +00:00
Matt Amos
321218f9b1 Make close button on route dialogue return to index. 2015-01-26 15:02:55 +00:00
Dan Stowell
c99841536b Use 'close-box' appearance (less confusing) for exit-from-directions 2015-01-24 13:27:17 +00:00
Matt Amos
4734b9ce5d Added some vertical space in the routing text input boxes. 2014-11-10 19:36:43 +00:00
Matt Amos
3a9db4cf30 Use buttons for switching to/from directions.
Previously, used a small text link which wasn't very usable. Now
it uses larger buttons which are (hopefully) more usable. Also
this sorts out the weird right-hanging text boxes for the to/from
in the directions sidebar - now they look like proper text input
boxes.

However, the "back to search" button and the directions submit
buttons are weirdly large and I don't quite understand why.
Hopefully an easy fix for someone who knows the arcana of CSS
better than I.
2014-11-10 19:17:21 +00:00
John Firebaugh
f2bf38606e Permalinks for directions 2014-05-14 15:52:25 -07:00
John Firebaugh
18c7c4f5d7 Use unobtrusive JS for routing related events 2014-05-12 12:49:54 -07:00
John Firebaugh
be79156f43 OSM.Routing -> OSM.Directions
Too close of a name collision to OSM.Router.
2014-05-12 12:46:09 -07:00
Tom Hughes
b095b59d5e Merge remote-tracking branch 'origin/master' into routing
Conflicts:
	app/views/layouts/_search.html.erb
2014-03-08 17:44:22 +00:00
Richard Fairhurst
902f1b0887 Add spinner while awaiting route 2014-03-08 11:14:48 +00:00
Tom Hughes
8c82be0537 Make the search form a GET form with no extra fields
We only accept GET requests for the search, and although the form is
never normally submitted directly some browsers offer an option to
create a bookmark from a form, so make that work.
2014-03-07 19:18:24 +00:00
Kai Krueger
3eaf58c151 Make more of the javascript routing functions internationalizable 2014-02-01 21:10:54 -07:00
Richard Fairhurst
edd6235b45 More work on draggable markers 2014-01-23 10:26:04 +00:00
Richard Fairhurst
08837b2f8b Start work on drag-and-drop start/end markers 2014-01-23 00:49:00 +00:00
Richard Fairhurst
40ad8c7def Start work on second engine 2014-01-21 23:47:50 +00:00
Richard Fairhurst
ad01a61b6d Query options presentation 2014-01-21 20:57:55 +00:00
Richard Fairhurst
2198b6ebbf Beginning of JavaScript-only routing UI 2014-01-21 13:29:05 +00:00
Tom Hughes
dd12e1de63 Restore the duplicate search form in the header
It turns out the duplicate form is used, for the the mobile view.
2013-12-16 09:39:54 +00: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
0d52b82d4e Move search form to header on small screens 2013-11-11 13:38:46 -08:00