change text before initiating handshake
This commit is contained in:
parent
f9036e0a26
commit
d2aef0d12f
|
@ -22,7 +22,7 @@ GIT
|
|||
|
||||
GIT
|
||||
remote: git://github.com/travis-ci/travis-api.git
|
||||
revision: e5ed22843f93d26c383a92f696baf13e520e2f74
|
||||
revision: 742583e8e9778b6c7fc147dc4ec3f12d3b360c8f
|
||||
branch: sf-use-services
|
||||
specs:
|
||||
travis-api (0.0.1)
|
||||
|
|
|
@ -32,14 +32,14 @@ $.extend Travis.Auth.prototype,
|
|||
console.log("signed in as #{event.data.user.login}")
|
||||
|
||||
trySignIn: ->
|
||||
@iframe.attr('src', "#{Travis.config.api_endpoint}/auth/post_message")
|
||||
|
||||
# TODO: use views
|
||||
link = $("#navigation .profile")
|
||||
html = link.html()
|
||||
link.html("Signing in with GitHub...")
|
||||
window.setTimeout((-> link.html(html)), @timeout)
|
||||
|
||||
@iframe.attr('src', "#{Travis.config.api_endpoint}/auth/post_message")
|
||||
|
||||
newUser: ->
|
||||
localStorage?.setItem("travisTrySignIn", "true")
|
||||
url = "#{Travis.config.api_endpoint}/auth/handshake?redirect_uri=#{window.location}"
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user