Search on Enter

This commit is contained in:
Ilya Zverev 2016-02-08 15:37:47 +03:00
parent a8e766c403
commit 8c9e9f19b3
2 changed files with 5 additions and 1 deletions

View file

@ -45,6 +45,10 @@ function init() {
});
$('#r_green').val(size_good);
$('#r_red').val(size_bad);
$('#fsearch').keyup(function(e) {
if( e.keyCode == 13 )
$('#b_search').click();
});
checkHasOSM();
filterSelect(true);
}

View file

@ -74,7 +74,7 @@
<a href="#" id="poly_all">всё</a>
</div>
<div id="search">
Поиск <input type="text" id="fsearch"><button onclick="doSearch()">&#x1f50d;</button>
Поиск <input type="text" id="fsearch"><button id="b_search" onclick="doSearch()">&#x1f50d;</button>
</div>
</div>
<div id="actions" class="actions">