title: How to reinitialize slimbox2 (lightbox plugin) after ajax call?
body: <p>We use some ajax to update a photo on a page. But afterwards, the slimbox lightbox no longer works. Previously, it does.</p>
  
  <p>I tried doing:</p>
  
  <pre><code>window.opener.slimbox2();
  </code></pre>
  
  <p>But it immediately opens the lightbox (as in the screen darkens and a white box appears at the middle). What I'd like is just to get the slimbox2 plugin sort of ready, not immediately pop-out. I tried looking at the js code for slimbox2 but it's already the minified version and it seems that the entire function is automatically called as it has this format:</p>
  
  <pre><code>(function () {
    // code here
  })(jQuery);
  </code></pre>
  
  <p>How do I call it again?</p>