diff --git a/app/corpora/forms.py b/app/corpora/forms.py index 9021da97..8ec9d17b 100644 --- a/app/corpora/forms.py +++ b/app/corpora/forms.py @@ -86,7 +86,7 @@ class DisplayOptionsForm(FlaskForm): class InspectDisplayOptionsForm(FlaskForm): expert_mode_inspect = BooleanField('Expert mode') - highlight_sentences = BooleanField('Highlight sentences') + highlight_sentences = BooleanField('Split sentences') context_sentences = IntegerField('Context sentences', validators=[NumberRange(min=0, max=10)], default=3) diff --git a/app/static/js/nopaque.callbacks.js b/app/static/js/nopaque.callbacks.js index c12df695..d283e742 100644 --- a/app/static/js/nopaque.callbacks.js +++ b/app/static/js/nopaque.callbacks.js @@ -59,6 +59,6 @@ function queryRenderResults(payload) { } // inital expert mode check and activation if (expertModeSwitchElement.checked) { - results.resultsList.expertModeOn(); + results.resultsList.expertModeOn("query-display"); } } \ No newline at end of file diff --git a/app/templates/corpora/analyse_corpus.html.j2 b/app/templates/corpora/analyse_corpus.html.j2 index 5a89198d..d1764a32 100644 --- a/app/templates/corpora/analyse_corpus.html.j2 +++ b/app/templates/corpora/analyse_corpus.html.j2 @@ -183,54 +183,63 @@