demarches-normaliennes/app/javascript/shared/page-update-event.js

10 lines
208 B
JavaScript
Raw Normal View History

2019-08-01 15:22:37 +02:00
import { fire } from '@utils';
addEventListener('turbolinks:load', function() {
fire(document, 'ds:page:update');
});
addEventListener('ajax:success', function() {
fire(document, 'ds:page:update');
});