mirror of
https://github.com/JanGross/quicknotes.git
synced 2025-12-01 07:37:18 +01:00
Fix pin note..
This commit is contained in:
@@ -390,7 +390,7 @@ View.prototype = {
|
|||||||
var id = parseInt(gridNote.data('id'), 10);
|
var id = parseInt(gridNote.data('id'), 10);
|
||||||
|
|
||||||
var note = self._notes.read(id);
|
var note = self._notes.read(id);
|
||||||
note.pinned = true;
|
note.isPinned = true;
|
||||||
|
|
||||||
self._notes.update(note).done(function () {
|
self._notes.update(note).done(function () {
|
||||||
icon.removeClass("hide-header-icon");
|
icon.removeClass("hide-header-icon");
|
||||||
@@ -413,7 +413,7 @@ View.prototype = {
|
|||||||
var id = parseInt(gridNote.data('id'), 10);
|
var id = parseInt(gridNote.data('id'), 10);
|
||||||
|
|
||||||
var note = self._notes.read(id);
|
var note = self._notes.read(id);
|
||||||
note.pinned = false;
|
note.isPinned = false;
|
||||||
|
|
||||||
self._notes.update(note).done(function () {
|
self._notes.update(note).done(function () {
|
||||||
icon.removeClass("fixed-header-icon");
|
icon.removeClass("fixed-header-icon");
|
||||||
|
|||||||
@@ -34,7 +34,6 @@ class Note extends Entity implements JsonSerializable {
|
|||||||
'id' => $this->id,
|
'id' => $this->id,
|
||||||
'title' => $this->title,
|
'title' => $this->title,
|
||||||
'content' => $this->content,
|
'content' => $this->content,
|
||||||
'pinned' => $this->pinned,
|
|
||||||
'isPinned' => $this->isPinned,
|
'isPinned' => $this->isPinned,
|
||||||
'timestamp' => $this->timestamp,
|
'timestamp' => $this->timestamp,
|
||||||
'color' => $this->color,
|
'color' => $this->color,
|
||||||
|
|||||||
Reference in New Issue
Block a user