summaryrefslogtreecommitdiff
path: root/ext/bg/js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2017-05-23 20:54:03 -0700
committerAlex Yatskov <alex@foosoft.net>2017-05-23 20:54:03 -0700
commitac406bdbf0d4b275ed8d1c48e29d0cb69e4d1800 (patch)
tree7d3e987de34c5213646d9d1ccc5afae4decbd8df /ext/bg/js
parent48693fa5942b8dc908615f73f08ceac8937b8216 (diff)
add debug info checkbox
Diffstat (limited to 'ext/bg/js')
-rw-r--r--ext/bg/js/options.js2
-rw-r--r--ext/bg/js/util.js1
2 files changed, 3 insertions, 0 deletions
diff --git a/ext/bg/js/options.js b/ext/bg/js/options.js
index 1ea6ed68..1b675da2 100644
--- a/ext/bg/js/options.js
+++ b/ext/bg/js/options.js
@@ -30,6 +30,7 @@ function formRead() {
optionsNew.general.audioVolume = $('#audio-playback-volume').val();
optionsNew.general.groupResults = $('#group-terms-results').prop('checked');
optionsNew.general.softKatakana = $('#soft-katakana-search').prop('checked');
+ optionsNew.general.debugInfo = $('#show-debug-info').prop('checked');
optionsNew.general.showAdvanced = $('#show-advanced-options').prop('checked');
optionsNew.general.maxResults = parseInt($('#max-displayed-results').val(), 10);
optionsNew.general.popupWidth = parseInt($('#popup-width').val(), 10);
@@ -118,6 +119,7 @@ $(document).ready(() => {
$('#audio-playback-volume').val(options.general.audioVolume);
$('#group-terms-results').prop('checked', options.general.groupResults);
$('#soft-katakana-search').prop('checked', options.general.softKatakana);
+ $('#show-debug-info').prop('checked', options.general.debugInfo);
$('#show-advanced-options').prop('checked', options.general.showAdvanced);
$('#max-displayed-results').val(options.general.maxResults);
$('#popup-width').val(options.general.popupWidth);
diff --git a/ext/bg/js/util.js b/ext/bg/js/util.js
index 09337c63..74e1f49e 100644
--- a/ext/bg/js/util.js
+++ b/ext/bg/js/util.js
@@ -99,6 +99,7 @@ function optionsSetDefaults(options) {
audioVolume: 100,
groupResults: true,
softKatakana: true,
+ debugInfo: false,
maxResults: 32,
showAdvanced: false,
popupWidth: 400,