mirror of
https://github.com/bckelley/cgm-remote-monitor.git
synced 2026-08-24 03:14:12 -05:00
make edit mode based on settings
This commit is contained in:
@@ -35,6 +35,7 @@ function init (client, plugins, serverSettings, $) {
|
||||
$('#alarm-timeagourgentmins-browser').val(settings.alarmTimeagoUrgentMins);
|
||||
|
||||
$('#nightmode-browser').prop('checked', settings.nightMode);
|
||||
$('#editmode-browser').prop('checked', settings.editMode);
|
||||
|
||||
if (settings.isEnabled('rawbg')) {
|
||||
$('#show-rawbg-option').show();
|
||||
@@ -128,6 +129,7 @@ function init (client, plugins, serverSettings, $) {
|
||||
alarmTimeagoUrgent: $('#alarm-timeagourgent-browser').prop('checked'),
|
||||
alarmTimeagoUrgentMins: parseInt($('#alarm-timeagourgentmins-browser').val()) || 30,
|
||||
nightMode: $('#nightmode-browser').prop('checked'),
|
||||
editMode: $('#editmode-browser').prop('checked'),
|
||||
showRawbg: $('input:radio[name=show-rawbg]:checked').val(),
|
||||
customTitle: $('input#customTitle').prop('value'),
|
||||
theme: $('input:radio[name=theme-browser]:checked').val(),
|
||||
|
||||
Reference in New Issue
Block a user