Commit graph

10 commits

Author SHA1 Message Date
Mormegil
caac9a9403 Ensure IE/Edge compatibility for routing drag&drop
Use the DataTransfer interface properly, using the `text` format, as
IE/Edge does not support much more. We can JSON-serialize anything
there, even though right now, only a single string would be enough.

Also, IE does not support .setDragImage, so check for support prior
to calling.

Fixes #1343
2016-10-27 12:34:07 +02:00
Tom Hughes
3c771a7844 Improve error handling for routing engines 2015-09-30 21:58:16 +01:00
Simon Legner
6d511fbd34 Directions, read "to" location in URL - fixes #998 2015-08-26 21:38:39 +02:00
Tom Hughes
05caad1a5d Fix some validation issues 2015-03-16 20:49:14 +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
9ec625e352 Fix typo
Fixed #916
2015-02-27 17:02:53 +00:00
Tom Hughes
4254a1f291 Cancel any outstanding route when starting a new one
Fixes #913
2015-02-26 18:39:31 +00:00
Tom Hughes
4b2c64fbed Set an explicit image when dragging from the routing panel
This may help with #912 but at the very least it gives us a full size
image consistent with dragging marker that is already on the map.
2015-02-26 14:06:25 +00:00
Tom Hughes
1596713871 Fix some JSHint complaints 2015-02-23 21:45:57 +00:00
Tom Hughes
e256c837b5 Eliminate templating from most javascript 2015-02-23 21:45:57 +00:00
Renamed from app/assets/javascripts/index/directions.js.erb (Browse further)