demarches-normaliennes/app/views/users
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
..
activate Fix instructeur invitation 2019-08-13 15:15:16 +02:00
confirmations fix missing alt 2020-08-04 13:41:10 +00:00
demarches app: rename new_user to users 2019-03-25 10:56:39 +01:00
dossiers autosave: remove the repetition row after deletion 2020-08-25 14:39:34 +02:00
feedbacks javascript: fix missign argument to catch 2020-04-08 16:54:31 +02:00
passwords [Fix #2861] Coquille 2018-10-17 19:50:03 +02:00
profil remplacement de demarches-simplifiees.fr par un paramètre dans les vues 2020-07-23 16:16:36 +02:00
registrations france connect avant les boutons de login/signup 2020-07-29 09:18:51 +02:00
sessions france connect avant les boutons de login/signup 2020-07-29 09:18:51 +02:00
shared Fix some files according the the .editorconfig rules 2018-09-20 16:23:09 +02:00
_general_footer_row.html.haml views: add identifiers to fooker links 2020-04-14 18:02:52 +02:00
_login_banner.html.haml [Fixes #2597] Remove given_name and family_name delegation 2018-10-04 13:54:07 +02:00
_procedure_footer.html.haml N'affiche pas un telephone inexistant d'un service 2019-12-04 05:34:43 +01:00