mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Blur the resend
button after response
This commit is contained in:
parent
a7bc8bffe0
commit
d547bff4e5
2 changed files with 4 additions and 2 deletions
|
@ -47,7 +47,7 @@ script(type='text/ng-template', id='shareProjectModalTemplate')
|
|||
.col-xs-8 {{ invite.email }}
|
||||
div.small
|
||||
| #{translate("invite_not_accepted")}.
|
||||
a(href="#", ng-click="resendInvite(invite)") #{translate("resend")}
|
||||
a(href="#", ng-click="resendInvite(invite, $event)") #{translate("resend")}
|
||||
.col-xs-3.text-left
|
||||
// todo: get invite privileges
|
||||
span(ng-show="invite.privileges == 'readAndWrite'") #{translate("can_edit")}
|
||||
|
|
|
@ -143,16 +143,18 @@ define [
|
|||
$scope.state.inflight = false
|
||||
$scope.state.error = "Sorry, something went wrong :("
|
||||
|
||||
$scope.resendInvite = (invite) ->
|
||||
$scope.resendInvite = (invite, event) ->
|
||||
$scope.state.error = null
|
||||
$scope.state.inflight = true
|
||||
projectInvites
|
||||
.resendInvite(invite._id)
|
||||
.success () ->
|
||||
$scope.state.inflight = false
|
||||
event.target.blur()
|
||||
.error () ->
|
||||
$scope.state.inflight = false
|
||||
$scope.state.error = "Sorry, something went wrong resending the invite :("
|
||||
event.target.blur()
|
||||
|
||||
$scope.openMakePublicModal = () ->
|
||||
$modal.open {
|
||||
|
|
Loading…
Reference in a new issue