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()
|
).property()
|
||||||
|
|
||||||
sync: ->
|
sync: ->
|
||||||
Travis.ajax.post('/users/sync')
|
self = this
|
||||||
@setWithSession('isSyncing', true)
|
Travis.ajax.post('/users/sync', {}, ->
|
||||||
@poll()
|
self.setWithSession('isSyncing', true)
|
||||||
|
self.poll()
|
||||||
|
)
|
||||||
|
|
||||||
poll: ->
|
poll: ->
|
||||||
Travis.ajax.get '/users', (data) =>
|
Travis.ajax.get '/users', (data) =>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user