diff --git a/website/public/scout/scripts.js b/website/public/scout/scripts.js index 5ee39d6d..596305a5 100644 --- a/website/public/scout/scripts.js +++ b/website/public/scout/scripts.js @@ -228,17 +228,17 @@ function processAndAppendReturn(data) { for (var j = 0; j < questions.length; j++) { document.getElementById('FormData').innerHTML += "
"; document.getElementById('FormData').innerHTML += questions[j][1]['title']; - if (questions[j][1]['type'] = 'shortText') { + if (questions[j][1]['type'] == 'shortText') { document.getElementById('FormData').innerHTML += ""; - } else if (questions[j][1]['type'] = 'longText') { + } else if (questions[j][1]['type'] == 'longText') { document.getElementById('FormData').innerHTML += ""; - } else if (questions[j][1]['type'] = 'stepper') { + } else if (questions[j][1]['type'] == 'stepper') { document.getElementById('FormData').innerHTML += "" + (questions[j][1]['default']).toString() + ""; - } else if (questions[j][1]['type'] = 'range') { + } else if (questions[j][1]['type'] == 'range') { document.getElementById('FormData').innerHTML += "  " + questions[j][1]['min']['text'] + "  "; document.getElementById('FormData').innerHTML += ""; document.getElementById('FormData').innerHTML += "  " + questions[j][1]['max']['text']; - } else if (questions[j][1]['type'] = 'segment') { + } else if (questions[j][1]['type'] == 'segment') { document.getElementById('FormData').innerHTML += "
" for (var k = 0; k < questions[j][1]['elements'].length; k++) { //// TODO: replace with real buttons for good styling