mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-27 17:45:40 -05:00
Merged conflicts.
This commit is contained in:
parent
85a6b648a5
commit
eed521fb8c
3 changed files with 14 additions and 14 deletions
|
@ -2,25 +2,25 @@ module.exports = initializeFacebook = ->
|
|||
# Additional JS functions here
|
||||
window.fbAsyncInit = ->
|
||||
FB.init
|
||||
appId: (if document.location.origin is "http://localhost:3000" then "607435142676437" else "148832601965463") # App ID
|
||||
channelUrl: document.location.origin + "/channel.html" # Channel File
|
||||
appId: (if document.location.origin is 'http://localhost:3000' then '607435142676437' else '148832601965463') # App ID
|
||||
channelUrl: document.location.origin + '/channel.html' # Channel File
|
||||
status: true # check login status
|
||||
cookie: true # enable cookies to allow the server to access the session
|
||||
xfbml: true # parse XFBML
|
||||
|
||||
Backbone.Mediator.publish "fbapi-loaded"
|
||||
Backbone.Mediator.publish 'fbapi-loaded'
|
||||
|
||||
# This is fired for any auth related change, such as login, logout or session refresh.
|
||||
FB.Event.subscribe "auth.authResponseChange", (response) ->
|
||||
FB.Event.subscribe 'auth.authResponseChange', (response) ->
|
||||
|
||||
# Here we specify what we do with the response anytime this event occurs.
|
||||
if response.status is "connected"
|
||||
if response.status is 'connected'
|
||||
|
||||
# They have logged in to the app.
|
||||
Backbone.Mediator.publish "facebook-logged-in",
|
||||
Backbone.Mediator.publish 'facebook-logged-in',
|
||||
response: response
|
||||
|
||||
else if response.status is "not_authorized"
|
||||
else if response.status is 'not_authorized'
|
||||
#
|
||||
else
|
||||
#
|
||||
|
@ -28,15 +28,15 @@ module.exports = initializeFacebook = ->
|
|||
# Load the SDK asynchronously
|
||||
((d) ->
|
||||
js = undefined
|
||||
id = "facebook-jssdk"
|
||||
ref = d.getElementsByTagName("script")[0]
|
||||
id = 'facebook-jssdk'
|
||||
ref = d.getElementsByTagName('script')[0]
|
||||
return if d.getElementById(id)
|
||||
js = d.createElement("script")
|
||||
js = d.createElement('script')
|
||||
js.id = id
|
||||
js.async = true
|
||||
js.src = "//connect.facebook.net/en_US/all.js"
|
||||
js.src = '//connect.facebook.net/en_US/all.js'
|
||||
|
||||
#js.src = "//connect.facebook.net/en_US/all/debug.js"
|
||||
#js.src = '//connect.facebook.net/en_US/all/debug.js'
|
||||
ref.parentNode.insertBefore js, ref
|
||||
return
|
||||
) document
|
||||
|
|
|
@ -21,7 +21,7 @@ module.exports = class DeltaView extends CocoView
|
|||
###
|
||||
|
||||
@deltaCounter: 0
|
||||
className: "delta-view"
|
||||
className: 'delta-view'
|
||||
template: template
|
||||
|
||||
constructor: (options) ->
|
||||
|
|
|
@ -4,7 +4,7 @@ DeltaView = require 'views/editor/delta'
|
|||
auth = require 'lib/auth'
|
||||
|
||||
module.exports = class PatchModal extends ModalView
|
||||
id: "patch-modal"
|
||||
id: 'patch-modal'
|
||||
template: template
|
||||
plain: true
|
||||
modalWidthPercent: 60
|
||||
|
|
Loading…
Reference in a new issue