demarches-normaliennes/app/javascript/shared/page-update-event.js
2019-08-13 17:03:55 +01:00

9 lines
208 B
JavaScript

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