Reroute but do not autozoom when removing via point using the minus (#33)

pull/108/head
Candid Dauth 2017-03-29 17:30:40 +02:00
rodzic 7e8ce6eaff
commit 082da0ae74
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -5,7 +5,7 @@
<div class="input-group">
<span class="input-group-addon">
<a href="javascript:" class="sort-handle"><span class="glyphicon glyphicon-resize-vertical"></span></a>
<a href="javascript:" ng-click="removeDestination($index)" ng-show="destinations.length > 2" uib-tooltip="Remove this destination" tooltip-append-to-body="true"><span class="glyphicon glyphicon-minus"></span></a>
<a href="javascript:" ng-click="removeDestination($index); reroute(true)" ng-show="destinations.length > 2" uib-tooltip="Remove this destination" tooltip-append-to-body="true"><span class="glyphicon glyphicon-minus"></span></a>
</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}}">