#87: debounce for 750ms before a query is fired

This commit is contained in:
Davide Alberani 2016-04-17 00:04:59 +02:00
parent 8d464b7336
commit f42b8d6be6
2 changed files with 2 additions and 2 deletions

View file

@ -33,7 +33,7 @@
<form class="form-inline">
<div class="form-group">
<label for="query-persons">{{'Search:' | translate}}</label>
<input eventman-focus type="text" id="query-persons" class="form-control" placeholder="{{'Name or email' | translate}}" ng-model="query">
<input eventman-focus type="text" id="query-persons" class="form-control" placeholder="{{'Name or email' | translate}}" ng-model="query" ng-model-options="{debounce: 750}">
</div>
</form>
<table class="table table-striped">

View file

@ -12,7 +12,7 @@
<form class="form-inline">
<div class="form-group">
<label for="query-persons">{{'Search:' | translate}}</label>
<input eventman-focus type="text" id="query-persons" class="form-control" placeholder="{{'Name or email' | translate}}" ng-model="query">
<input eventman-focus type="text" id="query-persons" class="form-control" placeholder="{{'Name or email' | translate}}" ng-model="query" ng-model-options="{debounce: 750}">
</div>
<div class="form-group">
<label for="events-order">{{'Sort by:' | translate}}</label>