Merge pull request #8699 from mfo/US/8661
a11y(bloc-repetable): amélioration des interactions avec les répétitions d'un bloc répétable
This commit is contained in:
commit
54d88e7dd0
41 changed files with 173 additions and 52 deletions
|
@ -7,8 +7,9 @@ class Champs::RepetitionController < ApplicationController
|
|||
end
|
||||
|
||||
def remove
|
||||
champ = policy_scope(Champ).includes(:champs).find(params[:champ_id])
|
||||
champ.champs.where(row_id: params[:row_id]).destroy_all
|
||||
@champ = policy_scope(Champ).includes(:champs).find(params[:champ_id])
|
||||
@champ.champs.where(row_id: params[:row_id]).destroy_all
|
||||
@champ.reload
|
||||
@row_id = params[:row_id]
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue