cvb
This commit is contained in:
parent
0e5c7162c5
commit
3bf2bd8f13
1 changed files with 10 additions and 2 deletions
|
@ -335,7 +335,11 @@ function handle_blackjack_action(cid, action) {
|
||||||
xhr.setRequestHeader('xhr', 'xhr');
|
xhr.setRequestHeader('xhr', 'xhr');
|
||||||
|
|
||||||
xhr.onload = function() {
|
xhr.onload = function() {
|
||||||
if (xhr.status == 200) location.reload();
|
if (xhr.status == 200)
|
||||||
|
{
|
||||||
|
location.hash = `comment-${cid}`;
|
||||||
|
location.reload();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
xhr.send(form);
|
xhr.send(form);
|
||||||
}
|
}
|
||||||
|
@ -351,7 +355,11 @@ function handle_wordle_action(cid, guess) {
|
||||||
xhr.setRequestHeader('xhr', 'xhr');
|
xhr.setRequestHeader('xhr', 'xhr');
|
||||||
|
|
||||||
xhr.onload = function() {
|
xhr.onload = function() {
|
||||||
if (xhr.status == 200) location.reload();
|
if (xhr.status == 200)
|
||||||
|
{
|
||||||
|
location.hash = `comment-${cid}`;
|
||||||
|
location.reload();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
xhr.send(form);
|
xhr.send(form);
|
||||||
}
|
}
|
Loading…
Add table
Add a link
Reference in a new issue