Fix #4468: Tag edit mode on posts view applies taglist to wrong post.
This commit is contained in:
@@ -70,7 +70,7 @@ PostModeMenu.initialize_edit_form = function() {
|
|||||||
|
|
||||||
$(document).on("click.danbooru", "#quick-edit-form input[type=submit]", async function(e) {
|
$(document).on("click.danbooru", "#quick-edit-form input[type=submit]", async function(e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
let post_id = $("#quick-edit-form").data("post-id");
|
let post_id = $("#quick-edit-form").attr("data-post-id");
|
||||||
await Post.update(post_id, "quick-edit", { post: { tag_string: $("#post_tag_string").val() }});
|
await Post.update(post_id, "quick-edit", { post: { tag_string: $("#post_tag_string").val() }});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user