basic functionality of history now working

This commit is contained in:
azivner
2017-09-23 10:18:08 -04:00
parent 647bbcaee1
commit a14257a31c
4 changed files with 36 additions and 17 deletions

View File

@@ -44,7 +44,7 @@ def updateNote(note_id):
now = math.floor(time.time())
history_cutoff = now - 3600
history_cutoff = now - 600
history = getSingleResult("select id from notes_history where note_id = ? and date_modified >= ?", [note_id, history_cutoff])

View File

@@ -173,10 +173,13 @@
<div id="noteHistoryDialog" title="Note history" style="display: none;">
<div style="display: flex;">
<select id="noteHistoryList" size="25" style="flex-grow: 1;">
<select id="noteHistoryList" size="25" style="flex-grow: 1; height: 630px;">
</select>
<div id="noteHistoryContent" style="flex-grow: 3;">
<div id="noteHistoryContentWrapper" style="flex-grow: 3; margin-left: 20px;">
<h1 id="noteHistoryTitle" style="margin-top: 5px;"></h1>
<div id="noteHistoryContent"></div>
</div>
</div>
</div>