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:
BrokenEagle
2020-03-28 21:04:53 +00:00
parent 7358452152
commit ddb888297e

View File

@@ -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() {