title: jQuery AjaxSubmit always triggers error (but still submitting)
body: <p>I use jQueryForm plugin to submit my forms. I have it in CodeIgniter, so when I submit the form, it runs callback to check for duplicated. If there is one, it loads a view with header 401, if there isn't any - loads normal view.</p>
  
  <p>I used this code for JS:</p>
  
  <pre><code>        function submitDeveloper() {
          $('form#addDeveloper').submit(function() {
  
              function getDevelopers() {
                  $('li.gameDeveloper select').load(window.location + ' li.gameDeveloper select &gt; *', function() {
                      $('.black, .addContent').fadeOut('fast');
                  })
              }
  
              $(this).ajaxSubmit({
                  error: function() {
                      alert('Developer już jest w bazie!')
                  },
                  success: getDevelopers
              })
  
              return false;
          })
      }
  </code></pre>
  
  <p>Now it triggers <code>error</code> all the time, but the data is still being submitted. Funny thing is, I have other function, which is almost the same, and it works. The only difference is, I am using <code>beforeSubmit</code> there, but here I don't see any point in this. </p>
  
  <p>What can this be?</p>