title: JQuery .done on a click event
body: <p>I'm not a javascript developer, so bear with me on this one...</p>
  
  <p>I need to perform a redirect after a jQuery <code>click</code> event has completed. This is what I have, but I can't apply <code>.done</code> to <code>.click</code>. Wrapping the whole thing in <code>$.when</code> doesn't work ether...</p>
  
  <pre><code>$("#printpng").click(function(){
              $('#tool_docprops').click();
              $('#tool_docprops_save').click();
              $('#tool_export').click()
          }).done(function(){
                  window.location.href = "&lt;?php echo $base_url ?&gt;/sign/print"
          });
  </code></pre>
  
  <p>does anyone have any better solutions?</p>
  
  <p>Thanks</p>