Better employer contact message.

This commit is contained in:
Nick Winter 2014-06-13 16:04:05 -07:00
parent 84601d2927
commit ff0d842871
2 changed files with 2 additions and 2 deletions

View file

@ -301,7 +301,7 @@ module.exports = class ProfileView extends View
null
onContactCandidate: (e) ->
@openModalView new JobProfileContactView recipientID: @user.id
@openModalView new JobProfileContactView recipientID: @user.id, recipientUserName: @user.get('name')
showErrors: (errors) ->
section = @$el.find '.saving'

View file

@ -36,7 +36,7 @@ module.exports = class JobProfileContactView extends ContactView
contactMessage.recipientID = @options.recipientID
res = tv4.validateMultiple contactMessage, contactSchema
return forms.applyErrorsToForm @$el, res.errors unless res.valid
contactMessage.message += '\n\n\n\n[CodeCombat says: please let us know if you end up accepting this job. Thanks!]'
contactMessage.message += "\n\n\n\n[CodeCombat says: please let us know if you end up accepting this job. Thanks, #{@options.recipientUserName}!]"
window.tracker?.trackEvent 'Sent Job Profile Message', message: contactMessage
sendContactMessage contactMessage, @$el
$.post "/db/user/#{me.id}/track/contact_candidate"