diff --git a/js/script.js b/js/script.js index f6ecf21..8bd6cb6 100644 --- a/js/script.js +++ b/js/script.js @@ -390,7 +390,7 @@ View.prototype = { var id = parseInt(gridNote.data('id'), 10); var note = self._notes.read(id); - note.pinned = true; + note.isPinned = true; self._notes.update(note).done(function () { icon.removeClass("hide-header-icon"); @@ -413,7 +413,7 @@ View.prototype = { var id = parseInt(gridNote.data('id'), 10); var note = self._notes.read(id); - note.pinned = false; + note.isPinned = false; self._notes.update(note).done(function () { icon.removeClass("fixed-header-icon"); diff --git a/lib/Db/Note.php b/lib/Db/Note.php index c7e03a4..7bd54d4 100644 --- a/lib/Db/Note.php +++ b/lib/Db/Note.php @@ -34,7 +34,6 @@ class Note extends Entity implements JsonSerializable { 'id' => $this->id, 'title' => $this->title, 'content' => $this->content, - 'pinned' => $this->pinned, 'isPinned' => $this->isPinned, 'timestamp' => $this->timestamp, 'color' => $this->color,