Fix location form submission bug on enter

This commit is contained in:
Johannes Zellner
2019-09-21 11:07:20 +02:00
parent 0b6f68e190
commit 36c23227e5

View File

@@ -302,6 +302,9 @@
<br>
</p>
<!-- hidden submit has to be prior to other button elements, otherwise firefox will treat them as the "enter" key action, in this case the alternate domain delete button! -->
<input class="ng-hide" type="submit" ng-disabled="locationForm.$invalid || location.busy"/>
<div class="has-error text-center" ng-show="location.error.port">{{ location.error.port }}</div>
<div ng-repeat="(env, info) in location.portBindingsInfo">
<ng-form name="portInfo_form">
@@ -350,8 +353,6 @@
<a href="" ng-click="location.addAlternateDomain($event)">Add another domain</a>
</div>
</div>
<input class="ng-hide" type="submit" ng-disabled="locationForm.$invalid || location.busy"/>
</form>
</fieldset>
</div>