diff --git a/src/templates/viewThreshold_new.html b/src/templates/viewThreshold_new.html index d8bb7e9c..fdf1b4f5 100644 --- a/src/templates/viewThreshold_new.html +++ b/src/templates/viewThreshold_new.html @@ -34,6 +34,7 @@

Set GeneSet Threshold

{% set threshold_high = threshold[1] if threshold[1] != '0' else maxVal %} {% if threshold_type == 4 or threshold_type == 5 %} {% set threshold_name = 'a correlation' if threshold_type == 4 else 'an effect' %} + {% set threshold_high = threshold_high if threshold[1] != '0' else threshold_low %}

Current Threshold Values: {{ threshold[0] }} {% if threshold[1] == '0' %} @@ -116,11 +117,12 @@

Set GeneSet Threshold

Manually enter a threshold value. Set to: {{ threshold_symbol }} < - +
+

{% endif %} {% endif %} @@ -153,6 +155,7 @@

Set GeneSet Threshold

const access_token = getCookie('access_token'); let value = $(this).val(); let valueHigh = null; + let minVal = {{ minVal }}; let newTresh; if (value === '' || value == null) { const $parent = $(this).parent().parent(); @@ -164,13 +167,17 @@

Set GeneSet Threshold

threshold: value, score_type: '{{ scoreType }}' }; + console.log('Threshold set successfully'); + set_histogram_threshold_range(minVal, value); } else { newTresh = { threshold_low: value, threshold: valueHigh, score_type: '{{ scoreType }}' }; + console.log('Threshold set successfully'); } + $.ajax({ type: 'PUT', {# @@ -186,7 +193,9 @@

Set GeneSet Threshold

'Authorization': `Bearer ${access_token}` }, success: function (data) { + location.reload(); + } }); }); @@ -196,6 +205,8 @@

Set GeneSet Threshold

{% if threshold_type != 3 %}