]> git.openstreetmap.org Git - rails.git/commit
Ensure IE/Edge compatibility for routing drag&drop
authorMormegil <mormegil@centrum.cz>
Thu, 27 Oct 2016 10:34:07 +0000 (12:34 +0200)
committerMormegil <mormegil@centrum.cz>
Thu, 27 Oct 2016 10:34:07 +0000 (12:34 +0200)
commitcaac9a94033bf6bea1f2eb05f23aa9898e236d3d
tree1f220cda34be8ec86fb4eaaa765aa135c8032c83
parentfc8b69f844287851615ce0141ca66b31384f4bfc
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
app/assets/javascripts/index/directions.js