diff --git a/app/webroot/js/decayingToolBasescore.js b/app/webroot/js/decayingToolBasescore.js index ec06be83a..a570d6676 100644 --- a/app/webroot/js/decayingToolBasescore.js +++ b/app/webroot/js/decayingToolBasescore.js @@ -17,8 +17,8 @@ function addTagWithValue(clicked) { function addPickedTags(clicked) { var numerical_values = []; - $select = $('#basescore-example-tag-picker'); - $previous_tags = $('#basescore-example-customtag-container span.decayingExampleTags'); + var $select = $('#basescore-example-tag-picker'); + var $previous_tags = $('#basescore-example-customtag-container span.decayingExampleTags'); $previous_tags.each(function() { numerical_values.push({name: $(this).text().split(':')[0], value: parseInt($(this).data('numerical_value'))}); }); @@ -43,7 +43,7 @@ function removeCustomTag(clicked) { $(clicked).parent().tooltip('destroy'); $(clicked).add($(clicked).prev()).remove(); var numerical_values = []; - $previous_tags = $('#basescore-example-customtag-container span.decayingExampleTags'); + var $previous_tags = $('#basescore-example-customtag-container span.decayingExampleTags'); $previous_tags.each(function() { numerical_values.push({name: $(this).text().split(':')[0], value: parseInt($(this).data('numerical_value'))}); }); @@ -210,8 +210,8 @@ function genHelpBaseScoreComputation(e, index) { function refreshExamples() { for (var i = 1; i <= 3; i++) { var numerical_values = []; - tags = pickRandomTags(); - tags_html = '