Correctly handle minScore form value
This commit is contained in:
parent
76a7e1e577
commit
8a08f948fc
@ -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())
|
||||||
};
|
};
|
||||||
|
@ -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">
|
||||||
|
Loading…
Reference in New Issue
Block a user