title: How to attach callback to jquery effect on dialog show?
body: <p>My problem is that I do not know how to attach callback to the jquery ui dialog show.</p>
  
  <p>The show is actually an option: </p>
  
  <pre><code>$( ".selector" ).dialog({ show: 'slide' });
  </code></pre>
  
  <p>I want to have a callback after the slide animation is complete. I looked from the effects itself and they have a callback:</p>
  
  <pre><code>effect( effect, [options], [speed], [callback] )
  </code></pre>
  
  <p>But in the dialog the effect is set up very differently. I tried also putting:</p>
  
  <pre><code>$( ".selector" ).dialog({ show: 'slide', callback: function() {} });
  </code></pre>
  
  <p>But it didn't work.</p>
  
  <p>Suggestions?</p>