demarches-normaliennes/app/views/shared/dossiers
Pierre de La Morinerie 96037069ff autosave: remove the repetition row after deletion
Before, when autosaving a draft, removing a repetition row would
send `_destroy` inputs to the controller – but not remove the row
from the DOM. This led to the `_destroy` inputs being sent again
on the next autosave request, which made the controller raise
(because the row fields were already deleted before).

To fix this, we let the controller response remove the deleted
row(s) from the DOM.

Doing it using a controller response avoids the need to keep track
of operations on the Javascript side: the controller can easily
know which row was just deleted, and emit the relevant changes for
the DOM. This keeps the autosave requests robust: even if a request
is skipped (e.g. because of a network interruption), the next request
will still contain the relevant informations to succeed, and not let the
form in an unstable state.

Fix #5470
2020-08-25 14:39:34 +02:00
..
editable_champs autosave: remove the repetition row after deletion 2020-08-25 14:39:34 +02:00
messages corrige mise en forme commentaire 2020-08-10 17:36:23 +02:00
_champ_row.html.haml Fix the thousand separator in order to copy/paste without space 2020-02-17 11:31:12 +01:00
_champs.html.haml highlight routing criteria label when updated 2020-03-04 14:56:59 +01:00
_demande.html.haml suppression du message d'alerte suite aux problèmes d'upload 2020-07-27 10:32:03 +02:00
_edit.html.haml replacing ' with ’ in text 2020-06-16 14:39:27 +00:00
_header.html.haml dossier: extract the invitation dropdown to a partial 2018-09-24 16:29:36 +02:00
_identite_entreprise.html.haml affiche les chiffres clés des 3 derniers bilans 2020-06-09 17:51:54 +02:00
_identite_entreprise_bilan_detail.html.haml affiche les chiffres clés des 3 derniers bilans 2020-06-09 17:51:54 +02:00
_identite_individual.html.haml change date format for all, use try_format_date of helper 2019-06-12 17:48:12 +02:00
_infos_generales.html.haml Refactor attachment view 2019-05-21 14:21:13 +02:00
_messagerie.html.haml Maj message quand messagerie désactivée 2019-11-18 14:28:05 +01:00
_submit_is_over.html.haml Rename demarche archivée to demarche close 2019-11-28 15:07:16 +01:00
_user_infos.html.haml gestionnaire: move dossier partials to a shared location 2018-08-14 15:06:44 +02:00