From d316392dfd7d6c03168b9480468952d134fe62dc Mon Sep 17 00:00:00 2001 From: Matias De lellis Date: Sat, 19 Sep 2020 18:04:02 -0300 Subject: [PATCH] Fix pin note.. --- js/script.js | 4 ++-- lib/Db/Note.php | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) 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,