Fix scope error

This commit is contained in:
Paul Chavard 2019-04-03 20:42:44 +02:00
parent c4ef6d89c9
commit 1cbd348569
2 changed files with 7 additions and 3 deletions

View file

@ -1,5 +1,3 @@
<%= render_flash(timeout: 5000, sticky: true) %>
<%= remove_element("#piece_justificative_#{@champ.id}") %>
let fileInputSelector = '<%= "#champs_#{@champ.id}" %>';
document.querySelector(fileInputSelector).classList.remove('hidden');
<%= show_element("#champs_#{@champ.id}") %>