make edit mode based on settings

This commit is contained in:
MilosKozak
2015-12-23 19:13:29 +01:00
parent c0fb23599e
commit 8e7ab1abb1
7 changed files with 31 additions and 21 deletions
+2
View File
@@ -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(),