Sync scrolling options from serveroptions on refresh

This commit is contained in:
Timo Wagner committed 2025-10-26 12:06:33 +01:00
1 parent f5c6924ffc
commit 9d0e16a525
2 files changed
+3 -1

No files matched your search

+1 -1
View File
@@ -49,7 +49,7 @@ export default class display {
displayTime: true,
statusMessage: "",
statusMessageScrolling: false,
statusMessageScrollingDuration: "15s"
statusMessageScrollingDuration: 15
};
/** @property {Array} timeoutId - holds setTimeout id's for mainLoop */
+2
View File
@@ -49,6 +49,8 @@ socket.on("callback.dashboard.sync", function (data) {
}).dropdown("set selected", { bundle: serverOptions.currentBundle });
$('#currentBundle').text(serverOptions.currentBundle);
$('#statusMessageAdmin').val(serverOptions.statusMessage.replace("<br>", "\n"));
$('#statusMessageScrolling')[0].checked = serverOptions.statusMessageScrolling;
$('#statusMessageScrollingDuration').val(serverOptions.statusMessageScrollingDuration);
// update dropdown at menu with bundles
valueArray = [];
let x = 0;