title: $.post .done callback not firing but data gets posted to server
body: <p>I have a simple javascript where I am POSTing to a server some data.</p>
  
  <pre><code>$.post(url,dataJSON, function() {
  }).done(function(json) {
      $("#summary-modal").modal('hide');
  }).fail(function(xhr, status, error) {
      var err = "&lt;div&gt;"+xhr.responseText+"&lt;/div&gt;";
      $('#submit_err').append(err);
      $('#submit_err').show();
  });
  </code></pre>
  
  <p>Now for some odd reason once the POST has been sent to the server and been accepted, it doesn't go the .done function. So in this case the modal doesn't hide.</p>
  
  <p>Any ideas what might be wrong?</p>
  
  <p>Thank you for reading.</p>