<p>Currently new or edited Diary entries are submitted via old fashioned POST of <a href="https://github.com/openstreetmap/openstreetmap-website/blob/70d6880e10881dfd4b68f51cf16609a9f8aaff24/app/views/diary_entries/edit.html.erb#L11">the form</a>. It should be relatively straightforward to AJAX-ify this (e.g. here is <a href="http://www.korenlc.com/remote-true-in-rails-forms/" rel="nofollow">one tutorial</a>, or see other parts of the application like <a href="https://github.com/openstreetmap/openstreetmap-website/blob/b8a8a88004d25837a10436fdc13128146b32c32b/app/views/messages/_message_summary.html.erb">message_summary</a>).</p>
<p>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.</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/issues/2091">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABWnLfoVJ_onPG1sNdvkCJO89trCVERrks5u79vAgaJpZM4Zf9vs">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABWnLTVEG3ZL4Y9Ile-b6G9MgcC0Bcieks5u79vAgaJpZM4Zf9vs.gif" height="1" width="1" alt="" /></p>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/openstreetmap/openstreetmap-website","title":"openstreetmap/openstreetmap-website","subtitle":"GitHub repository","main_image_url":"https://github.githubassets.com/images/email/message_cards/header.png","avatar_image_url":"https://github.githubassets.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/openstreetmap/openstreetmap-website"}},"updates":{"snippets":[{"icon":"DESCRIPTION","message":"Ajaxify Diary forms (#2091)"}],"action":{"name":"View Issue","url":"https://github.com/openstreetmap/openstreetmap-website/issues/2091"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/issues/2091",
"url": "https://github.com/openstreetmap/openstreetmap-website/issues/2091",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>