title: Fancybox link not working with submit button
body: <p>Okay, so I have a fancybox, now currently working, but it isn't working entirely properly. It only works in an actual text-link, not when I have it as an  over a submit button. Well, I shouldn't say that it doesn't work, rather it works and the fancybox closes automatically within under a second, or lasts about a second if I'm lucky, but it never stays open (it does stay open from a text link).</p>
  
  <p>The FB code:</p>
  
  <pre><code>&lt;script&gt;
  $(document).ready(function() {
   $("#top-login-button").click(function() {
    $.fancybox({
     padding    : 15,
     href       : "#login_form_ajax",
     afterClose : function(){ // it was onClosed for v1.3.4
      $("#login_error").hide();
     }
    }); // fancybox
   }); //click
  
   $("#login_form_ajax").bind("submit", function() {
    if ($("#login_name").val().length &lt; 1 || $("#login_pass").val().length &lt; 1) {
     $("#login_error").show();
     $.fancybox.update(); // it was $.fancybox.resize(); for v1.3.4
     return false;
    }
    $.fancybox.showLoading(); // it was $.fancybox.showActivity(); for v1.3.4
    $.ajax({
     padding : 15,
     type    : "POST",
     cache   : false,
     url     : "anyPage.php?page=ajax",
     data    : $(this).serializeArray(),
     success: function(data) {
      $.fancybox(data);
     }
    });
    return false;
   }); // bind
  }); // ready
  &lt;/script&gt;
  </code></pre>
  
  <p>The Fancybox open links:</p>
  
  <pre><code>&lt;a id="top-login-button" href="#login_form_ajax" rel="gallery"&gt;Open login form&lt;/a&gt;
  </code></pre>
  
  <p>The above works. The one below, works and closes automatically.</p>
  
  <pre><code>&lt;a id="top-login-button" href="#login_form_ajax" style="text-decoration:none" title="X"&gt;  
  &lt;input class="czas" type="submit" name="ajax" value="X"&gt;&lt;/a&gt;
  </code></pre>
  
  <p>Any ideas? I'm at a loss.</p>