From 45166c6f02a22382d9116cb8ca23f8f7eae7a1d3 Mon Sep 17 00:00:00 2001 From: Samuel Gaist <samuel.gaist@idiap.ch> Date: Wed, 14 Aug 2019 11:34:37 +0200 Subject: [PATCH] [algorithms][template][edition] Fix analyzer method update When editing an algorithm, checking the analyzer checkbox would replace the current process method by null. This patch fixes that. --- beat/web/algorithms/templates/algorithms/edition.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/beat/web/algorithms/templates/algorithms/edition.html b/beat/web/algorithms/templates/algorithms/edition.html index 59c0a1759..a64bdac14 100644 --- a/beat/web/algorithms/templates/algorithms/edition.html +++ b/beat/web/algorithms/templates/algorithms/edition.html @@ -222,8 +222,9 @@ function setupEditor(algorithm, dataformats, libraries) } {% if not binary %} + var algorithm_type = type_sequential_selector[0].checked ? beat.contributions.editor.SEQUENTIAL : beat.contributions.editor.AUTONOMOUS source_code_editor.changeProcessMethod(checkbox_analyzer[0].checked, - type_sequential_selector[0].checked); + algorithm_type); {% endif %} inputs_editor.setAnalyzer(checkbox_analyzer[0].checked); }); -- GitLab