Compare commits

...

4 Commits

Author SHA1 Message Date
Seth Call 7aeac8bf56 cancel fix 2017-02-12 21:13:07 -06:00
Seth Call b6f066880b fix bad chat history 2017-02-12 20:58:20 -06:00
Seth Call a7f2a69150 fix display of session time 2017-02-12 20:58:17 -06:00
Seth Call c0e10cd657 remove 403 check from jamblaster 2017-02-12 20:58:04 -06:00
5 changed files with 15 additions and 11 deletions

View File

@ -948,6 +948,9 @@ SQL
if scheduled_duration.class == String
duration = scheduled_duration.to_i.seconds
end
if duration == 0
duration = 30 * 60
end
duration
end
@ -996,7 +999,7 @@ SQL
"#{start_time.strftime("%A, %B %e")}, #{start_time.strftime("%l:%M").strip}-#{end_time.strftime("%l:%M %p").strip} #{timezone_display}"
end
else
"#{start_time.strftime("%A, %B %e")} - #{start_time.strftime("%l:%M%P").strip}"
"#{start_time.strftime("%A, %B %e")} - #{end_time.strftime("%l:%M%P").strip}"
end
else

View File

@ -194,13 +194,14 @@ LessonTimerActions = context.LessonTimerActions
@app.ajaxError(jqXHR)
cancelSelected: (lesson, recurring) ->
rest.checkLessonCancel({id: lesson.id, update_all: recurring}).done((response) => (@issueCancelLesson(lesson,
recurring))).fail((jqXHR) => (@cancelSelectedFail(jqXHR)))
rest.checkLessonCancel({id: lesson.id, update_all: recurring})
.done((response) => @issueCancelLesson(lesson, recurring))
.fail((jqXHR) => @cancelSelectedFail(jqXHR, lesson))
cancelSelectedFailed: (jqXHR) ->
cancelSelectedFail: (jqXHR, lesson) ->
if jqXHR.status == 422
if recurring
if lesson.recurring
if @viewerStudent()
buttons = []
buttons.push({name: 'CLOSE', buttonStyle: 'button-grey'})

View File

@ -502,7 +502,7 @@ UserStore = context.UserStore
else if this.state.user.lesson_package_type_id == 'test-drive-2'
explanation =`<span>You are purchasing the TestDrive package of JamClass by JamKazam. This purchase entitles you to take 2 private online music lessons - 1 each from 2 different instructors in the JamClass instructor community. The price of this TestDrive package is $29.99.</span>`
else
alert("You do not have a test drive package selected")
alert("You do not have a test drive package selected: " + this.state.user.lesson_package_type_id )
bookingDetail = `<p>{explanation}

View File

@ -81,7 +81,7 @@ SessionStore = context.SessionStore
query.start = next
return query
c: (lessonSessionId) ->
initializeLesson: (lessonSessionId) ->
@lessonSessionId = lessonSessionId
@channelType = 'lesson'

View File

@ -51,10 +51,10 @@ class ApiJamblastersController < ApiController
return
end
if jamblaster && jamblaster.users.length > 0 && !user.jamblasters.include?(jamblaster)
render :json => {reason: "jamblaster_access", message: "current user does not have access to jamblaster #{jamblaster.id}"}, status: 403
return
end
# if jamblaster && jamblaster.users.length > 0 && !user.jamblasters.include?(jamblaster)
# render :json => {reason: "jamblaster_access", message: "current user does not have access to jamblaster #{jamblaster.id}"}, status: 403
# return
# end
render :json => {}, status: 200
end