mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
Fixed adding ghost post notes after removing some
This commit is contained in:
@ -97,7 +97,10 @@ App.Presenters.PostNotesPresenter = function(
|
||||
promise.wait(api.delete('/notes/' + postNote.id))
|
||||
.then(function() {
|
||||
hideForm();
|
||||
postNote.$element.remove();
|
||||
notes = jQuery.grep(notes, function(otherNote) {
|
||||
return otherNote.id !== postNote.id;
|
||||
});
|
||||
render();
|
||||
}).fail(function(response) {
|
||||
window.alert(response.json && response.json.error || response);
|
||||
});
|
||||
|
Reference in New Issue
Block a user