mirror of
https://codeberg.org/kbruen/kai.infotren.git
synced 2025-02-22 17:19:37 +02:00
Prevent refresh on back to group select
If train data is already known, don't refresh when going back to the group selection screen.
This commit is contained in:
parent
35b19ffe80
commit
3ca35ce91d
1 changed files with 6 additions and 1 deletions
|
@ -343,7 +343,12 @@ function rsk() {
|
|||
|
||||
window.addEventListener('popstate', function (e) {
|
||||
groupIndex = null
|
||||
refresh()
|
||||
if (trainData) {
|
||||
onTrainData(trainData)
|
||||
}
|
||||
else {
|
||||
refresh()
|
||||
}
|
||||
})
|
||||
|
||||
window.addEventListener('load', function (e) {
|
||||
|
|
Loading…
Add table
Reference in a new issue