Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[20.09] Bugfix: chrome forgets scroll offset upon show/hide cycle of GTN in Galaxy webhook #10362

Merged
merged 2 commits into from Oct 6, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 6 additions & 2 deletions config/plugins/webhooks/gtn/script.js
@@ -1,7 +1,11 @@
var gtnWebhookLoaded = false;

function removeOverlay() {
document.getElementById("gtn-container").classList.add("d-none");
document.getElementById("gtn-container").style.visibility = "hidden";
}

function showOverlay() {
document.getElementById("gtn-container").style.visibility = "visible";
}

function addIframe() {
Expand Down Expand Up @@ -105,7 +109,7 @@ elementReady("#gtn a").then((el) => {
if (!gtnWebhookLoaded) {
addIframe();
} else {
document.getElementById("gtn-container").classList.toggle("d-none");
showOverlay();
}
});
});
Expand Down