mirror of
https://github.com/wukko/cobalt.git
synced 2025-05-28 12:30:12 +02:00
scroll to top on tab change in popups
This commit is contained in:
parent
d892b3526e
commit
0cfdf15cfa
@ -133,6 +133,7 @@ function changeTab(evnt, tabId, tabClass) {
|
||||
|
||||
evnt.currentTarget.dataset.enabled = "true";
|
||||
eid(tabId).dataset.enabled = "true";
|
||||
eid(tabId).parentElement.scrollTop = 0;
|
||||
|
||||
if (tabId === "tab-about-changelog" && sGet("changelogStatus") !== `${version}`) notificationCheck("changelog");
|
||||
if (tabId === "tab-about-about" && !sGet("seenAbout")) notificationCheck("about");
|
||||
|
Loading…
x
Reference in New Issue
Block a user