Reset route when clearing destination field

pull/54/merge
Candid Dauth 2016-11-20 20:53:07 +03:00
rodzic ca1e8745b8
commit 3bb16eac72
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -9,7 +9,7 @@
</span>
<div class="has-feedback">
<input type="search" class="form-control" ng-model="destination.query" placeholder="{{$index == 0 ? 'From' : $index == destinations.length-1 ? 'To' : 'Via'}}" tabindex="{{$index+1}}">
<a href="javascript:" class="reset-button form-control-feedback" ng-click="destination.query=''" ng-show="destination.query.length > 0"><span class="icon-clear"></span></a>
<a href="javascript:" class="reset-button form-control-feedback" ng-click="destination.query=''; reset()" ng-show="destination.query.length > 0"><span class="icon-clear"></span></a>
</div>
<span class="input-group-btn" uib-dropdown keyboard-nav="true" ng-show="destination.query.length > 0">
<button type="button" class="btn btn-default" uib-dropdown-toggle ng-click="loadSuggestions(destination)"><span class="caret"></span></button>