diff --git a/beat/web/algorithms/templates/algorithms/edition.html b/beat/web/algorithms/templates/algorithms/edition.html index 940b638acfbb2573b7041a1836ce3d5e541a02c3..0c9cd5ed05807059105962898672a4a64d1160c7 100644 --- a/beat/web/algorithms/templates/algorithms/edition.html +++ b/beat/web/algorithms/templates/algorithms/edition.html @@ -329,13 +329,14 @@ function setupEditor(algorithm, dataformats, libraries) var data = { {% if not edition %} - {% if algorithm_version > 1 and not fork_of %} - name: '{{ algorithm_name }}', - version: '{{ algorithm_version }}', - previous_version:'{{ algorithm_author }}/{{ algorithm_name }}/{{ algorithm_version|add:-1 }}', - {% else %} - name: $('#algorithm_name')[0].value.trim(), - {% endif %} + {% if algorithm_version > 1 and not fork_of %} + name: '{{ algorithm_name }}', + version: {{ algorithm_version }}, + previous_version:'{{ algorithm_author }}/{{ algorithm_name }}/{{ algorithm_version|add:-1 }}', + {% else %} + name: $('#algorithm_name')[0].value.trim(), + version: 1, + {% endif %} description: (algorithm && algorithm.description) || '', {% endif %} short_description: (algorithm && algorithm.short_description) || '',