Skip to content

Commit cfe087e

Browse files
committed
1 parent 8f43978 commit cfe087e

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

ts/WoltLabSuite/Core/Controller/EditHistory/VersionList.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@ function initRadioButtons(container: HTMLElement): void {
5050
newIdInput.addEventListener("change", () => {
5151
newInputChanged(newIdInput);
5252
});
53-
newInputChanged(newIdInput);
53+
if (newIdInput.checked) {
54+
newInputChanged(newIdInput);
55+
}
5456
});
5557

5658
function oldInputChanged(oldIdInput: HTMLInputElement): void {
@@ -67,7 +69,9 @@ function initRadioButtons(container: HTMLElement): void {
6769
oldIdInput.addEventListener("change", () => {
6870
oldInputChanged(oldIdInput);
6971
});
70-
oldInputChanged(oldIdInput);
72+
if (oldIdInput.checked) {
73+
oldInputChanged(oldIdInput);
74+
}
7175
});
7276
}
7377

wcfsetup/install/files/js/WoltLabSuite/Core/Controller/EditHistory/VersionList.js

Lines changed: 6 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)