demarches-normaliennes/app/javascript/shared/page-update-event.js
2020-05-12 18:18:37 +02:00

9 lines
210 B
JavaScript

import { fire } from '@utils';
addEventListener('turbolinks:load', function () {
fire(document, 'ds:page:update');
});
addEventListener('ajax:success', function () {
fire(document, 'ds:page:update');
});