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