"use strict"; const recentChanges = (function() { const $showDialogButton = $("#recent-changes-button"); const $dialog = $("#recent-changes-dialog"); async function showDialog() { glob.activeDialog = $dialog; $dialog.dialog({ modal: true, width: 800, height: 700 }); const result = await server.get('recent-changes/'); $dialog.html(''); const groupedByDate = groupByDate(result); for (const [dateDay, dayChanges] of groupedByDate) { const changesListEl = $('