mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-30 19:06:59 -05:00
f0fa88206d
* Refactor several related endpoints and views * Redesign EnrollmentView, add TeacherContactModal * Add "Enrollment Status" tab to TeacherClassView * Delete PurchaseCoursesView and related files * Style-flatten RemoveStudentModal * Fix error handling in ActivateLicensesModal * TeacherCoursesView loads faster by only loading course campaigns, and not load prepaids
19 lines
543 B
CoffeeScript
19 lines
543 B
CoffeeScript
module.exports = {
|
|
sendContactMessage: (contactMessageObject, modal) ->
|
|
# deprecated
|
|
modal?.find('.sending-indicator').show()
|
|
return $.post '/contact', contactMessageObject, (response) ->
|
|
return unless modal
|
|
modal.find('.sending-indicator').hide()
|
|
modal.find('#contact-message').val('Thanks!')
|
|
_.delay ->
|
|
modal.find('#contact-message').val('')
|
|
modal.modal 'hide'
|
|
, 1000
|
|
|
|
send: (options={}) ->
|
|
options.type = 'POST'
|
|
options.url = '/contact'
|
|
$.ajax(options)
|
|
|
|
}
|