votes: fix bug with tag scripting in show score mode.
Fix a bug where scores would disappear when applying tag scripts in show scores mode.
This commit is contained in:
@@ -409,7 +409,10 @@ Post.update = async function(post_id, mode, params) {
|
||||
Post.pending_update_count += 1;
|
||||
Post.show_pending_update_notice()
|
||||
|
||||
await $.ajax({ type: "PUT", url: `/posts/${post_id}.js?mode=${mode}`, data: params });
|
||||
let urlParams = new URLSearchParams(window.location.search);
|
||||
let view = urlParams.get("view");
|
||||
|
||||
await $.ajax({ type: "PUT", url: `/posts/${post_id}.js?mode=${mode}&view=${view}`, data: params });
|
||||
|
||||
Post.pending_update_count -= 1;
|
||||
Post.show_pending_update_notice();
|
||||
|
||||
Reference in New Issue
Block a user