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

@@ -4,7 +4,7 @@ const treeUtils = (function() {
const treeEl = $("#tree");
function getParentProtectedStatus(node) {
return isTopLevelNode(node) ? 0 : node.getParent().data.is_protected;
return isTopLevelNode(node) ? 0 : node.getParent().data.isProtected;
}
function getNodeByKey(key) {
@@ -21,8 +21,8 @@ const treeUtils = (function() {
const path = [];
while (node && !isRootNode(node)) {
if (node.data.note_id) {
path.push(node.data.note_id);
if (node.data.noteId) {
path.push(node.data.noteId);
}
node = node.getParent();
@@ -32,7 +32,7 @@ const treeUtils = (function() {
}
function setNodeTitleWithPrefix(node) {
const noteTitle = noteTree.getNoteTitle(node.data.note_id);
const noteTitle = noteTree.getNoteTitle(node.data.noteId);
const prefix = node.data.prefix;
const title = (prefix ? (prefix + " - ") : "") + noteTitle;