fixed primary keys, added indexes

This commit is contained in:
azivner
2017-10-24 20:00:54 -04:00
parent d1981eb6c3
commit 11bfae4007
4 changed files with 58 additions and 1 deletions

View File

@@ -45,6 +45,7 @@ $(document).bind('keydown', 'alt+h', showCurrentNoteHistory);
$("#note-history-list").on('change', () => {
const optVal = $("#note-history-list").find(":selected").val();
const historyItem = globalHistoryItems.find(r => r.id == optVal); // non-strict comparison is important here!!!
$("#note-history-title").html(historyItem.note_title);