renamed db columns to camelCase

This commit is contained in:
azivner
2018-01-28 19:30:14 -05:00
parent 55d8ef7e81
commit 3b1f928fbc
58 changed files with 778 additions and 778 deletions

View File

@@ -24,22 +24,22 @@ const recentChanges = (function() {
const dayEl = $('<div>').append($('<b>').html(formatDate(dateDay))).append(changesListEl);
for (const change of dayChanges) {
const formattedTime = formatTime(parseDate(change.date_modified_to));
const formattedTime = formatTime(parseDate(change.dateModifiedTo));
const revLink = $("<a>", {
href: 'javascript:',
text: 'rev'
}).attr('action', 'note-history')
.attr('note-path', change.note_id)
.attr('note-history-id', change.note_history_id);
.attr('note-path', change.noteId)
.attr('note-history-id', change.noteHistoryId);
let noteLink;
if (change.current_is_deleted) {
noteLink = change.current_note_title;
if (change.current_isDeleted) {
noteLink = change.current_title;
}
else {
noteLink = link.createNoteLink(change.note_id, change.note_title);
noteLink = link.createNoteLink(change.noteId, change.title);
}
changesListEl.append($('<li>')
@@ -57,7 +57,7 @@ const recentChanges = (function() {
const dayCache = {};
for (const row of result) {
let dateDay = parseDate(row.date_modified_to);
let dateDay = parseDate(row.dateModifiedTo);
dateDay.setHours(0);
dateDay.setMinutes(0);
dateDay.setSeconds(0);