[openstreetmap/openstreetmap-website] Ajaxify Diary forms (#2091)

Oleg Lavrovsky notifications at github.com
Sun Dec 23 19:38:40 UTC 2018


Currently new or edited Diary entries are submitted via old fashioned POST of [the form](https://github.com/openstreetmap/openstreetmap-website/blob/70d6880e10881dfd4b68f51cf16609a9f8aaff24/app/views/diary_entries/edit.html.erb#L11). It should be relatively straightforward to AJAX-ify this (e.g. here is [one tutorial](http://www.korenlc.com/remote-true-in-rails-forms/), or see other parts of the application like [message_summary](https://github.com/openstreetmap/openstreetmap-website/blob/b8a8a88004d25837a10436fdc13128146b32c32b/app/views/messages/_message_summary.html.erb)). 

Doing this will slightly reduce the load on the server, and improve the user experience in one key area: disconnections that lead to data loss will be more manageable - the user can see their content and save it offline if there is an issue, and this will make implementing Auto-Save easier as a next step.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/2091
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20181223/21bc8f88/attachment.html>


More information about the rails-dev mailing list