SettingsView: Fix logging
This commit is contained in:
parent
8c8475076b
commit
9eefc0c29b
1 changed files with 4 additions and 0 deletions
|
@ -13,6 +13,7 @@
|
||||||
|
|
||||||
const CheckboxView = Whisper.View.extend({
|
const CheckboxView = Whisper.View.extend({
|
||||||
initialize(options) {
|
initialize(options) {
|
||||||
|
this.name = options.name;
|
||||||
this.setFn = options.setFn;
|
this.setFn = options.setFn;
|
||||||
this.value = options.value;
|
this.value = options.value;
|
||||||
this.populate();
|
this.populate();
|
||||||
|
@ -94,17 +95,20 @@
|
||||||
if (Settings.isAudioNotificationSupported()) {
|
if (Settings.isAudioNotificationSupported()) {
|
||||||
new CheckboxView({
|
new CheckboxView({
|
||||||
el: this.$('.audio-notification-setting'),
|
el: this.$('.audio-notification-setting'),
|
||||||
|
name: 'audio-notification-setting',
|
||||||
value: window.initialData.audioNotification,
|
value: window.initialData.audioNotification,
|
||||||
setFn: window.setAudioNotification,
|
setFn: window.setAudioNotification,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
new CheckboxView({
|
new CheckboxView({
|
||||||
el: this.$('.spell-check-setting'),
|
el: this.$('.spell-check-setting'),
|
||||||
|
name: 'spell-check-setting',
|
||||||
value: window.initialData.spellCheck,
|
value: window.initialData.spellCheck,
|
||||||
setFn: window.setSpellCheck,
|
setFn: window.setSpellCheck,
|
||||||
});
|
});
|
||||||
new CheckboxView({
|
new CheckboxView({
|
||||||
el: this.$('.menu-bar-setting'),
|
el: this.$('.menu-bar-setting'),
|
||||||
|
name: 'menu-bar-setting',
|
||||||
value: window.initialData.hideMenuBar,
|
value: window.initialData.hideMenuBar,
|
||||||
setFn: window.setHideMenuBar,
|
setFn: window.setHideMenuBar,
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue