mirror of
https://github.com/UiO-Gaming/infoscreen3.git
synced 2026-11-05 13:56:52 +01:00
Sync scrolling options from serveroptions on refresh
This commit is contained in:
1 parent
f5c6924ffc
commit
9d0e16a525
2 files changed
+3
-1
No files matched your search
+1
-1
@@ -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 */
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user