mirror of
https://github.com/jech/galene.git
synced 2024-11-10 02:35:58 +01:00
Save blackboard mode and activity detection across reloads.
This commit is contained in:
parent
fb17778ba6
commit
8a44726f89
1 changed files with 12 additions and 2 deletions
|
@ -227,9 +227,19 @@ function reflectSettings() {
|
|||
store = true;
|
||||
}
|
||||
|
||||
getInputElement('activitybox').checked = settings.activityDetection;
|
||||
if(settings.hasOwnProperty('blackboardMode')) {
|
||||
getInputElement('blackboardbox').checked = settings.blackboardMode;
|
||||
} else {
|
||||
settings.blackboardMode = getInputElement('blackboardbox').checked;
|
||||
store = true;
|
||||
}
|
||||
|
||||
getInputElement('blackboardbox').checked = settings.blackboardMode;
|
||||
if(settings.hasOwnProperty('activityDetection')) {
|
||||
getInputElement('activitybox').checked = settings.activityDetection;
|
||||
} else {
|
||||
settings.activityDetection = getInputElement('activitybox').checked;
|
||||
store = true;
|
||||
}
|
||||
|
||||
if(store)
|
||||
storeSettings(settings);
|
||||
|
|
Loading…
Reference in a new issue