Fix movable status not being removed after the note has been saved
This was also causing the movable status on new notes to require clicking twice to remove that status since the note ID gets changed but the move ID wasn't.
This commit is contained in:
@@ -680,10 +680,13 @@ let Note = {
|
||||
$note_body.data("id", String(data.id)).attr("data-id", data.id);
|
||||
$note_box.data("id", String(data.id)).attr("data-id", data.id);
|
||||
$note_box.removeClass("unsaved");
|
||||
$note_box.removeClass("movable");
|
||||
} else {
|
||||
$note_box = Note.Box.find(data.id);
|
||||
$note_box.removeClass("unsaved");
|
||||
$note_box.removeClass("movable");
|
||||
}
|
||||
Note.move_id = null;
|
||||
},
|
||||
|
||||
save: function() {
|
||||
|
||||
Reference in New Issue
Block a user