* working on build issues still

This commit is contained in:
Seth Call 2015-06-09 08:19:03 -05:00
parent 2f562b7df3
commit b179869606
6 changed files with 9 additions and 8 deletions

View File

@ -38,7 +38,6 @@
//= require jquery.exists
//= require jquery.payment
//= require jquery.visible
//= require es5-shim
//= require reflux
//= require howler.core.js
//= require jstz

View File

@ -19,8 +19,8 @@ context.JK.ClientInit = class ClientInit
setTimeout(this.checkBroadcastNotification, 3000)
checkBroadcastNotification: () =>
console.log("broadcastActions", broadcastActions)
broadcastActions.load.triggerPromise()
if context.JK.userId
broadcastActions.load.triggerPromise()
nativeClientInit: () =>

View File

@ -25,8 +25,9 @@ BroadcastNotificationStore = Reflux.createStore(
onLoadCompleted: () =>
logger.debug("broadcast notification sync completed")
onLoadFailed: () =>
logger.error("broadcast notification sync failed")
onLoadFailed: (jqXHR) =>
if jqXHR.status != 404
logger.error("broadcast notification sync failed")
}
)

View File

@ -374,6 +374,9 @@ SampleApp::Application.routes.draw do
match '/users/:id/share/session/:provider' => 'api_users#share_session', :via => :get
match '/users/:id/share/recording/:provider' => 'api_users#share_recording', :via => :get
# broadcast notification
match '/users/:id/broadcast_notification' => 'api_users#broadcast_notification', :via => :get
# session chat
match '/chat' => 'api_chats#create', :via => :post
match '/sessions/:music_session/chats' => 'api_chats#index', :via => :get

File diff suppressed because one or more lines are too long