Enable enter key on share dialog button

This commit is contained in:
Shane Kilkelly 2016-08-11 15:24:35 +01:00
parent 276241495b
commit a9042ff324

View file

@ -95,6 +95,7 @@ script(type='text/ng-template', id='shareProjectModalTemplate')
button.btn.btn-info( button.btn.btn-info(
type="submit" type="submit"
ng-mousedown="addMembers()" ng-mousedown="addMembers()"
ng-keyup="$event.keyCode == 13 ? addMembers() : null"
) #{translate("share")} ) #{translate("share")}
div(ng-hide="canAddCollaborators") div(ng-hide="canAddCollaborators")
p.text-center #{translate("need_to_upgrade_for_more_collabs")}. Also: p.text-center #{translate("need_to_upgrade_for_more_collabs")}. Also: