mirror of
https://github.com/hrfee/jfa-go.git
synced 2024-12-22 17:10:10 +00:00
activity: reload invites on link click
This commit is contained in:
parent
a288ba4461
commit
3951116bdc
@ -305,9 +305,11 @@ export class Activity implements activity, SearchableItem {
|
|||||||
for (let i = 0; i < pseudoInvites.length; i++) {
|
for (let i = 0; i < pseudoInvites.length; i++) {
|
||||||
const navigate = (event: Event) => {
|
const navigate = (event: Event) => {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
window.tabs.switch("invites");
|
window.invites.reload(() => {
|
||||||
document.dispatchEvent(inviteURLEvent(pseudoInvites[i].getAttribute("data-id")));
|
window.tabs.switch("invites");
|
||||||
window.history.pushState(null, document.title, pseudoInvites[i].getAttribute("data-href"));
|
document.dispatchEvent(inviteURLEvent(pseudoInvites[i].getAttribute("data-id")));
|
||||||
|
window.history.pushState(null, document.title, pseudoInvites[i].getAttribute("data-href"));
|
||||||
|
});
|
||||||
}
|
}
|
||||||
pseudoInvites[i].onclick = navigate;
|
pseudoInvites[i].onclick = navigate;
|
||||||
pseudoInvites[i].onkeydown = navigate;
|
pseudoInvites[i].onkeydown = navigate;
|
||||||
|
Loading…
Reference in New Issue
Block a user