Start polling only after sync request was done
This commit is contained in:
parent
d12a444aed
commit
33358b3613
|
@ -51,9 +51,11 @@ require 'travis/model'
|
|||
).property()
|
||||
|
||||
sync: ->
|
||||
Travis.ajax.post('/users/sync')
|
||||
@setWithSession('isSyncing', true)
|
||||
@poll()
|
||||
self = this
|
||||
Travis.ajax.post('/users/sync', {}, ->
|
||||
self.setWithSession('isSyncing', true)
|
||||
self.poll()
|
||||
)
|
||||
|
||||
poll: ->
|
||||
Travis.ajax.get '/users', (data) =>
|
||||
|
|
Loading…
Reference in New Issue
Block a user