diff --git a/db/migrations/0081__rename_history_snapshot_time_interval.sql b/db/migrations/0081__rename_history_snapshot_time_interval.sql new file mode 100644 index 000000000..8416ec760 --- /dev/null +++ b/db/migrations/0081__rename_history_snapshot_time_interval.sql @@ -0,0 +1 @@ +UPDATE options SET name = 'note_revision_snapshot_time_interval' WHERE name = 'history_snapshot_time_interval'; \ No newline at end of file diff --git a/src/public/javascripts/dialogs/note_history.js b/src/public/javascripts/dialogs/note_history.js deleted file mode 100644 index 57222f6bd..000000000 --- a/src/public/javascripts/dialogs/note_history.js +++ /dev/null @@ -1,72 +0,0 @@ -import noteDetailService from '../services/note_detail.js'; -import utils from '../services/utils.js'; -import server from '../services/server.js'; - -const $dialog = $("#note-history-dialog"); -const $list = $("#note-history-list"); -const $content = $("#note-history-content"); -const $title = $("#note-history-title"); - -let historyItems = []; - -async function showCurrentNoteHistory() { - await showNoteHistoryDialog(noteDetailService.getCurrentNoteId()); -} - -async function showNoteHistoryDialog(noteId, noteRevisionId) { - glob.activeDialog = $dialog; - - $dialog.dialog({ - modal: true, - width: 800, - height: 700 - }); - - $list.empty(); - $content.empty(); - - historyItems = await server.get('notes-history/' + noteId); - - for (const item of historyItems) { - const dateModified = utils.parseDate(item.dateModifiedFrom); - - $list.append($('