Removed linkedIn callback, disabled autosave

This commit is contained in:
Michael Schmatz 2014-06-08 18:21:56 -07:00
parent f29a41f108
commit ad80fcf229

View file

@ -73,10 +73,10 @@ module.exports = class ProfileView extends View
unless overwriteConfirm then return unless overwriteConfirm then return
application.linkedinHandler.getProfileData (err, profileData) => application.linkedinHandler.getProfileData (err, profileData) =>
console.log profileData console.log profileData
@processLinkedInProfileData profileData, -> @processLinkedInProfileData profileData
jobProfileSchema: -> @user.schema().properties.jobProfile.properties jobProfileSchema: -> @user.schema().properties.jobProfile.properties
processLinkedInProfileData: (p, cb) -> processLinkedInProfileData: (p) ->
#handle formatted-name #handle formatted-name
currentJobProfile = @user.get('jobProfile') currentJobProfile = @user.get('jobProfile')
oldJobProfile = _.cloneDeep(currentJobProfile) oldJobProfile = _.cloneDeep(currentJobProfile)
@ -230,6 +230,7 @@ module.exports = class ProfileView extends View
@editing = not @editing @editing = not @editing
@render() @render()
IN.parse() IN.parse()
@saveEdits()
toggleJobProfileApproved: -> toggleJobProfileApproved: ->
return unless me.isAdmin() return unless me.isAdmin()