Removed linkedIn callback, disabled autosave
This commit is contained in:
parent
f29a41f108
commit
ad80fcf229
1 changed files with 3 additions and 2 deletions
|
@ -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()
|
||||||
|
|
Reference in a new issue