demarches-normaliennes/app/javascript/shared/page-update-event.js
Pierre de La Morinerie b5f1d97629 app: disable Turbolinks
Fix #5039
2020-05-13 11:04:16 +02:00

9 lines
211 B
JavaScript

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