send form when pressing enter
This commit is contained in:
@@ -3,6 +3,12 @@ $(document).ready(function(){
|
||||
|
||||
$('#search-submit').click(plot);
|
||||
|
||||
$('#search-input').keypress(function(e) {
|
||||
if(e.which == 13) {
|
||||
plot();
|
||||
}
|
||||
});
|
||||
|
||||
renderGroupBy();
|
||||
updateSearchLimitValue();
|
||||
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
data-autocomplete-empty-message="nothing found" />
|
||||
</div>
|
||||
<div id="search-bar">
|
||||
<form>
|
||||
<label for="search-group-by-1">Group By:</label>
|
||||
<select id="search-group-by-1"></select>
|
||||
<select id="search-group-by-2"></select>
|
||||
@@ -61,6 +62,7 @@
|
||||
</select>
|
||||
|
||||
<button id="search-submit"><i class="fa fa-area-chart" aria-hidden="true"></i> Plot</button>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div id="navigation">
|
||||
|
||||
Reference in New Issue
Block a user