1

Correctly handle minScore form value

This commit is contained in:
Alex Yatskov 2014-09-13 18:25:33 +09:00
parent 76a7e1e577
commit 8a08f948fc
2 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@
var params = { var params = {
keywords: $('#keywords').val(), keywords: $('#keywords').val(),
searchRange: { min: -1.0, max: 1.0 }, searchRange: { min: -1.0, max: 1.0 },
minScore: parseInt($('#minScore').val()), minScore: parseFloat($('#minScore').val()),
hintSteps: parseInt($('#hintSteps').val()), hintSteps: parseInt($('#hintSteps').val()),
maxResults: parseInt($('#maxResults').val()) maxResults: parseInt($('#maxResults').val())
}; };

View File

@ -27,7 +27,7 @@
<div class="form-group"> <div class="form-group">
<label for="minScore" class="col-md-2 control-label">Minimum score</label> <label for="minScore" class="col-md-2 control-label">Minimum score</label>
<div class="col-md-10"> <div class="col-md-10">
<input type="text" class="form-control" value="1.0" id="minScore" name="minScore"> <input class="form-control" type="number" step="any" value="1.0" id="minScore" name="minScore">
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">