function createExperience(form){
  formData = $(form).serialize();
  var request = $.ajax({
    method: 'post',
    url: '/experiences',
    data: formData
  })
  request.done(function(response){
    var experienceID = response
    addImageToExperienceForm(experienceID) // This file doesn't know which experience to add stuff to
  })
  request.fail(function(response) {
    console.log('nope')
    var $error = $("<p>").text("Title Required")
    $("#create-experience-submit").prepend($error)
  })
}

function createExperience(form){
  formData = $(form).serialize();
  var request = $.ajax({
    method: 'post',
    url: '/experiences',
    data: formData
  })
  request.done(function(response){
    var experienceID = response
    clearMainFrame().done(function() {
      addImageToExperienceForm(experienceID)
    });
  })
  request.fail(function(response) {
    console.log('nope')
    var $error = $("<p>").text("Title Required")
    $("#create-experience-submit").prepend($error)
  })
}

Add smooth transition between create and image upload forms
Add smooth transition between create and image upload forms
