demarches-normaliennes/app/views/new_user/feedbacks/create.js.erb
2018-08-09 11:41:26 +02:00

4 lines
No EOL
245 B
Text

document.querySelector('#user-satisfaction').innerHTML = '';
var flashMessagesView = "<%= escape_javascript(render partial: 'layouts/flash_messages') %>";
document.querySelector("#flash_messages").outerHTML = flashMessagesView;
<% flash.clear %>