let globalHistoryItems = null; $(document).bind('keydown', 'alt+h', function() { $("#noteHistoryDialog").dialog({ modal: true, width: 800, height: 700 }); $("#noteHistoryList").empty(); $("#noteHistoryContent").empty(); $.ajax({ url: baseApiUrl + 'notes-history/' + globalCurrentNote.detail.note_id, type: 'GET', success: function (result) { globalHistoryItems = result; for (const row of result) { const dateModified = getDateFromTS(row.date_modified); $("#noteHistoryList").append($('