title: sweetAlert preventDefault and return true
body: <p>I tried <a href="http://t4t5.github.io/sweetalert/" rel="nofollow">sweeAlert</a> plugin, which works perfectly, but I cant figure out how to do default stuff after confirm.</p>
  
  <pre><code>$(document).ready(function () {
  function handleDelete(e){
      e.preventDefault();
      swal({
          title: "Are you sure?",
          text: "You will not be able to recover the delaer again!",
          type: "warning",
          showCancelButton: true,
          confirmButtonColor: "#DD6B55",
          confirmButtonText: "Yes, delete!",
          closeOnConfirm: false
      },
      function (isConfirm) {
          if (isConfirm) {
              return true;
          }
      });
  };
  });
  </code></pre>
  
  <p>and the button</p>
  
  <pre><code> &lt;a href="{plink delete! $row-&gt;id_dealers}" class="delete" onclick"handleDelete(event);"&gt;&amp;nbsp;&lt;/a&gt;
   //{plink delete! $row-&gt;id_dealers} Nette -&gt; calls php delete handler
  </code></pre>
  
  <p>I also tried <code>unbind()</code> and <code>off()</code> instead of <code>return false</code>, doesnt work.
  Earlier I used <code>confirm()</code> with <code>return true</code> and <code>return false</code>in <code>onclick</code> attribute, it works, but it looks awful. </p>